Sha256: d65754ba9d6a6cfc1885608bd56d625b692bb3d58849dd1dd67e30782e9d506d

Contents?: true

Size: 395 Bytes

Versions: 4

Compression:

Stored size: 395 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
git_wrapper-1.1.2 lib/git_wrapper/commands/config.rb
git_wrapper-1.1.1 lib/git_wrapper/commands/config.rb
git_wrapper-1.1.0 lib/git_wrapper/commands/config.rb
git_wrapper-1.0.3 lib/git_wrapper/commands/config.rb