Class: Pu::Gem::StateMachinesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
PlutoniumGenerators::Generator
Defined in:
lib/generators/pu/gem/state_machines/state_machines_generator.rb

Instance Method Summary collapse

Methods included from PlutoniumGenerators::Generator

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



12
13
14
15
16
17
# File 'lib/generators/pu/gem/state_machines/state_machines_generator.rb', line 12

def start
  bundle "state_machines"
  bundle "state_machines-activerecord"
rescue => e
  exception "#{self.class} failed:", e
end