Class: ModuleSync::CLI::Base
- Inherits:
-
Thor
- Object
- Thor
- ModuleSync::CLI::Base
- Defined in:
- lib/modulesync/cli.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
115 116 117 118 119 120 121 |
# File 'lib/modulesync/cli.rb', line 115 def update config = { :command => 'update' }.merge() 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 |