Sha256: 1cd9d1d0a1a7fb5bdfaf746bcdb0f3d097937304bffbc3ca12e0fbdac90b2aae
Contents?: true
Size: 903 Bytes
Versions: 4
Compression:
Stored size: 903 Bytes
Contents
module RorVsWild class Installer PATH = "config/rorvswild.yml" def self.create_rails_config(api_key) if File.directory?("config") if !File.exists?(PATH) File.write(PATH, template(api_key)) puts "File #{PATH} has been created. Restart / deploy your app to start collecting data." else puts "File #{PATH} already exists." end else puts "There is no config directory to create #{PATH}." end end def self.template(api_key) <<YAML # Keep the development block for testing on your local machine only. development: api_key: #{api_key} production: api_key: #{api_key} # explain_sql_threshold: 500 # Execute EXPLAIN for queries above the specified time in ms. # ignored_exceptions: # - ActionController::RoutingError # - UncommentToIgnoreAnyExceptionNameListedHere YAML end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rorvswild-0.6.1 | lib/rorvswild/installer.rb |
rorvswild-0.6.0 | lib/rorvswild/installer.rb |
rorvswild-0.5.1 | lib/rorvswild/installer.rb |
rorvswild-0.5.0 | lib/rorvswild/installer.rb |