class SimpleApm::Generators::InstallGenerator
Public Instance Methods
add_default_config()
click to toggle source
# File lib/generators/simple_apm/install_generator.rb, line 8 def add_default_config path = "#{Rails.root}/config/simple_apm.yml" if File.exist?(path) puts 'Skipping config/simple_apm.yml creation, as file already exists!' else puts 'Adding simple_apm default config file (config/simple_apm.yml)...' template 'config/simple_apm.yml', path end end
add_routes()
click to toggle source
# File lib/generators/simple_apm/install_generator.rb, line 18 def add_routes route 'mount SimpleApm::Engine => "/apm"' end