Sha256: 4e907280b12fe31fa39b004835ee60c5c4fdad60f4d67364f38ad18ab0803f3d

Contents?: true

Size: 357 Bytes

Versions: 4

Compression:

Stored size: 357 Bytes

Contents

module GitWrapper
  module Commands
    class Commit < Git

      def message(message)
        @message = message
        self
      end

      def author(name, email)
        @author = "#{name} <#{email}>"
        self
      end

      def command
        "commit -m \"#{@message}\" #{@author ? "--author \"#{@author}\"" : ''}"
      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/commit.rb
git_wrapper-1.1.1 lib/git_wrapper/commands/commit.rb
git_wrapper-1.1.0 lib/git_wrapper/commands/commit.rb
git_wrapper-1.0.3 lib/git_wrapper/commands/commit.rb