Sha256: 68a0e034dd6241aaedc641d7d6091d1dc0bb5db80a2fa2805f9a58e01dd96748

Contents?: true

Size: 617 Bytes

Versions: 6

Compression:

Stored size: 617 Bytes

Contents

require 'rails/generators'

class ErrplaneGenerator < Rails::Generators::Base
  desc "Description:\n  This creates a Rails initializer for Errplane."

  source_root File.expand_path('../templates', __FILE__)
  argument :api_key,
    required: false,
    type: :string,
    description: "API Key for your Errplane Organization"
  argument :application_id,
    required: false,
    default: lambda { Time.now.to_s },
    type: :string,
    description: "API Key for your Errplane Organization"

  def copy_initializer_file
    template "initializer.rb", "config/initializers/errplane.rb"
  end

  def install
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
errplane-0.0.6 lib/rails/generators/errplane/errplane_generator.rb
errplane-0.0.5 lib/rails/generators/errplane/errplane_generator.rb
errplane-0.0.4 lib/rails/generators/errplane/errplane_generator.rb
errplane-0.0.3 lib/rails/generators/errplane/errplane_generator.rb
errplane-0.0.2 lib/rails/generators/errplane/errplane_generator.rb
errplane-0.0.1 lib/rails/generators/errplane/errplane_generator.rb