Sha256: 15200defc18ccaa3f6e5f93d515c7813b7d16e274b123ae8d4bc185993f8f1cd

Contents?: true

Size: 430 Bytes

Versions: 6

Compression:

Stored size: 430 Bytes

Contents

require 'rails/generators'
class PartyBusGenerator < Rails::Generators::Base
  source_root File.expand_path('../templates', __FILE__)

  argument :api_key, required: true, :desc => "required"

  desc "Configures the bugsnag notifier with your API key"

  def create_initializer_file
    initializer "party_bus.rb" do
      <<-EOF
PartyBus.configure do |config|
  config.api_key = #{api_key.inspect}
end
      EOF
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
party_bus-0.1.16 lib/generators/party_bus/party_bus_generator.rb
party_bus-0.1.15 lib/generators/party_bus/party_bus_generator.rb
party_bus-0.1.14 lib/generators/party_bus/party_bus_generator.rb
party_bus-0.1.13 lib/generators/party_bus/party_bus_generator.rb
party_bus-0.1.12 lib/generators/party_bus/party_bus_generator.rb
party_bus-0.1.11 lib/generators/party_bus/party_bus_generator.rb