Sha256: 9d4cd2c46901376585748b7a9cd8c65d94aebf61b2bc8f10c3c01944887a93a1

Contents?: true

Size: 373 Bytes

Versions: 6

Compression:

Stored size: 373 Bytes

Contents

module Raygun
  class InstallGenerator < Rails::Generators::Base

    argument :api_key

    desc "This generator creates a configuration file for the Raygun ruby adapter inside config/initializers"
    def create_configuration_file
      initializer "raygun.rb" do
        <<-EOS
Raygun.setup do |config|
  config.api_key = "#{api_key}"
end
EOS
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
raygun4ruby-1.0.0 lib/generators/raygun/install_generator.rb
raygun4ruby-0.0.9 lib/generators/raygun/install_generator.rb
raygun4ruby-0.0.6 lib/generators/raygun/install_generator.rb
raygun4ruby-0.0.5 lib/generators/raygun/install_generator.rb
raygun4ruby-0.0.4 lib/generators/raygun/install_generator.rb
raygun4ruby-0.0.3 lib/generators/raygun/install_generator.rb