Class: Pu::Profile::ConnGenerator

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

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



21
22
23
24
25
26
27
28
29
30
# File 'lib/generators/pu/profile/conn_generator.rb', line 21

def start
  validate_portal_destination!
  connect_to_portal
  customize_policy
  customize_definition
  customize_controller
  add_profile_url_helper
rescue => e
  exception "#{self.class} failed:", e
end