Class: Propel::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#install_propel_componentsObject



73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/generators/propel/install_generator.rb', line 73

def install_propel_components
  show_welcome_message
  
  components = determine_components_to_install
  validate_component_availability(components)
  
  say "Installing Propel components: #{components.join(', ')}", :green
  
  install_components(components)
  run_migrations unless options[:skip_migrations]
  # copy_api_explorer if components.include?(:api)  # TODO: Re-enable for future release when API Explorer is ready
  show_completion_message
end