Class: Wabi::Generators::UpdateGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/wabi/generators/update_generator.rb

Defined Under Namespace

Classes: UpdateAborted

Instance Method Summary collapse

Instance Method Details

#update_componentsObject



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 options[:dry_run]
rescue UpdateAborted => e
  say "  aborted: #{e.message}", :red
end