Class: Graylog2Rails::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Graylog2Rails::InstallGenerator
- Defined in:
- lib/generators/graylog2_rails/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/generators/graylog2_rails/install_generator.rb', line 9 def install say "Install Graylog2Rails", :green @app_name = Rails.application.class.name.sub(/::Application$/, "").underscore say "Copying config file" template "config.erb", "config/graylog2_rails.yml" say "Done", :green end |