Sha256: f36dcde722f04c8ed761c46185457b1f6c0ae000b0108ebfae7420f4e6a31002

Contents?: true

Size: 283 Bytes

Versions: 4

Compression:

Stored size: 283 Bytes

Contents

module GitWrapper
  module Commands
    class Add < Git

      def all
        @file = '-A'
        self
      end

      def file(file_name)
        @file = to_relative_path(file_name)
        self
      end

      def command
        "add \"#{@file}\""
      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/add.rb
git_wrapper-1.1.1 lib/git_wrapper/commands/add.rb
git_wrapper-1.1.0 lib/git_wrapper/commands/add.rb
git_wrapper-1.0.3 lib/git_wrapper/commands/add.rb