Sha256: e2a60f4ed0eac410c05cb21ff54d86e46d8371502c0299bb40c7c5367eadb0fd
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 Bytes
Contents
require 'rails/generators' require 'active_support' 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: true, type: :string, description: "API key for your Errplane organization" argument :application_id, required: false, default: SecureRandom.hex(4), type: :string, description: "Identifier for this application (Leave blank and a new one will be generated for you)" def copy_initializer_file template "initializer.rb", "config/initializers/errplane.rb" end def install end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
errplane-0.1.7 | lib/rails/generators/errplane/errplane_generator.rb |