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
130 131 132 133 134 135 136 137 138 |
# File 'lib/modulesync/cli.rb', line 130 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 |