Sha256: 225d70e38603907acda5a83b5143b61c4c3f3d394b1632dbe534279f8f867864
Contents?: true
Size: 809 Bytes
Versions: 14
Compression:
Stored size: 809 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} # ignored_exceptions: # - ActionController::RoutingError # - UncommentToIgnoreAnyExceptionNameListedHere YAML end end end
Version data entries
14 entries across 14 versions & 1 rubygems