Class: Cloudify::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#app_nameObject



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_initializerObject



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_readmeObject



15
16
17
# File 'lib/generators/cloudify/install/install_generator.rb', line 15

def show_readme
  readme 'README'
end