class BugsnagGenerator
Public Instance Methods
create_initializer_file()
click to toggle source
# File lib/generators/bugsnag/bugsnag_generator.rb, line 11 def create_initializer_file unless /^[a-f0-9]{32}$/ =~ api_key raise Thor::Error, "Invalid bugsnag notifier api key #{api_key.inspect}\nYou can find the api key on the Settings tab of https://bugsnag.com/" end initializer "bugsnag.rb" do <<-EOF Bugsnag.configure do |config| config.api_key = #{api_key.inspect} end EOF end end