Class: Pu::Core::UpdateGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
PlutoniumGenerators::Generator
Defined in:
lib/generators/pu/core/update/update_generator.rb

Constant Summary collapse

SHELL_PIN_THRESHOLD =
"0.49.1"

Instance Method Summary collapse

Methods included from PlutoniumGenerators::Generator

derive_association_name, find_shared_namespace, included

Methods included from PlutoniumGenerators::Concerns::Logger

#debug, #error, #exception, #info, #success, #warn

Methods included from PlutoniumGenerators::Concerns::Config

#read_config, #write_config

Instance Method Details

#startObject



14
15
16
17
18
19
20
21
22
# File 'lib/generators/pu/core/update/update_generator.rb', line 14

def start
  @previous_gem_version = installed_gem_version
  update_gem
  update_npm_package
  sync_skills_if_present
  pin_shell_to_classic
rescue => e
  exception "#{self.class} failed:", e
end