Class: Firetail::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_firetail_configurationObject



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_middlewareObject



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_schemaObject



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_readmeObject



21
22
23
# File 'lib/generators/firetail/install_generator.rb', line 21

def show_readme
  readme "README" if behavior == :invoke
end