gabynaiman/git_wrapper

View on GitHub
lib/git_wrapper/commands/config.rb

Summary

Maintainability
A
0 mins
Test Coverage
module GitWrapper
  module Commands
    class Config < Git

      def key(key)
        @key = key
        self
      end

      def value(value)
        @value = value
        self
      end

      def command
        "config #{@key} #{@value}"
      end

      def result
        return @success if @value || !@success
        @output[0..(@output.length - 2)].strip
      end

    end
  end
end