Class: Pu::Profile::SetupGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
PlutoniumGenerators::Generator, Concerns::ProfileArguments
Defined in:
lib/generators/pu/profile/setup_generator.rb

Instance Method Summary collapse

Methods included from Concerns::ProfileArguments

#normalize_arguments

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



24
25
26
27
28
29
30
# File 'lib/generators/pu/profile/setup_generator.rb', line 24

def start
  normalize_arguments
  generate_profile
  connect_to_portal if options[:portal].present?
rescue => e
  exception "#{self.class} failed:", e
end