Class: Cloudify::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Cloudify::InstallGenerator
- Defined in:
- lib/generators/cloudify/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#app_name ⇒ Object
7 8 9 |
# File 'lib/generators/cloudify/install/install_generator.rb', line 7 def app_name @app_name ||= Rails.application.is_a?(Rails::Application) && Rails.application.class.name.sub(/::Application$/, "").downcase end |
#generate_initializer ⇒ Object
11 12 13 |
# File 'lib/generators/cloudify/install/install_generator.rb', line 11 def generate_initializer template "cloudify.rb", "config/initializers/cloudify.rb" end |
#show_readme ⇒ Object
15 16 17 |
# File 'lib/generators/cloudify/install/install_generator.rb', line 15 def show_readme readme 'README' end |