Method: Command::WriteCommit#read_message

Defined in:
lib/command/shared/write_commit.rb

#read_messageObject



41
42
43
44
45
46
47
# File 'lib/command/shared/write_commit.rb', line 41

def read_message
  if @options.has_key?(:message)
    "#{ @options[:message] }\n"
  elsif @options.has_key?(:file)
    File.read(@options[:file])
  end
end