Class: ModuleSync::CLI::Base

Inherits:
Thor
  • Object
show all
Defined in:
lib/modulesync/cli.rb

Instance Method Summary collapse

Instance Method Details

#updateObject

Raises:

  • (Thor::Error)


115
116
117
118
119
120
121
# File 'lib/modulesync/cli.rb', line 115

def update
  config = { :command => 'update' }.merge(options)
  config = Util.symbolize_keys(config)
  raise Thor::Error, 'No value provided for required option "--message"' unless config[:noop] || config[:message] || config[:offline]
  config[:git_opts] = { 'amend' => config[:amend], 'force' => config[:force] }
  ModuleSync.update(config)
end