Class: Wabi::Generators::UpdateGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Wabi::Generators::UpdateGenerator
- Defined in:
- lib/wabi/generators/update_generator.rb
Defined Under Namespace
Classes: UpdateAborted
Instance Method Summary collapse
Instance Method Details
#update_components ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/wabi/generators/update_generator.rb', line 24 def update_components names = target_names if names.empty? say " no components to update", :yellow return end names.each { |name| update_component(name) } lockfile.save unless [:dry_run] rescue UpdateAborted => e say " aborted: #{e.}", :red end |