class GitCommands::Commit
Public Class Methods
new(title, body = '')
click to toggle source
Calls superclass method
Command::new
# File lib/straight_line/common/git_commands/commit.rb, line 6 def initialize(title, body = '') super 'git' arg 'commit -a' arg %(-m "#{title}") unless title.empty? arg %(-m "#{body}") unless body.nil? || body.empty? end