class Cir::Cli::UpdateCommand
Update command
Public Instance Methods
opts()
click to toggle source
# File lib/cir/cli/update_command.rb, line 20 def opts Trollop::Parser.new do banner "Note new local changes to the tracked file(s) in the repository (~ git commit)" opt :message, "Optional commit message that should be used when updating the changes in tracking git repository.", type: :string end end
process()
click to toggle source
# File lib/cir/cli/update_command.rb, line 27 def process Trollop::die "Missing file list" if self.files.empty? self.repository.update(self.files, {message: self.args.message}) end