Class: Firetail::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Firetail::Generators::InstallGenerator
- Defined in:
- lib/generators/firetail/install_generator.rb
Instance Method Summary collapse
- #add_firetail_configuration ⇒ Object
- #add_firetail_middleware ⇒ Object
- #add_firetail_sample_schema ⇒ Object
- #show_readme ⇒ Object
Instance Method Details
#add_firetail_configuration ⇒ Object
7 8 9 |
# File 'lib/generators/firetail/install_generator.rb', line 7 def add_firetail_configuration template "firetail.yml", File.join("config", "firetail.yml") end |
#add_firetail_middleware ⇒ Object
12 13 14 |
# File 'lib/generators/firetail/install_generator.rb', line 12 def add_firetail_middleware application "config.middleware.use Firetail::Run" end |
#add_firetail_sample_schema ⇒ Object
17 18 19 |
# File 'lib/generators/firetail/install_generator.rb', line 17 def add_firetail_sample_schema template "schema.json", File.join("config", "schema.json") end |
#show_readme ⇒ Object
21 22 23 |
# File 'lib/generators/firetail/install_generator.rb', line 21 def show_readme readme "README" if behavior == :invoke end |