Sha256: 655b049e97d3c2b92ec2c03e9a2ab709d0792a92d5f88b1012896e19c65362e0
Contents?: true
Size: 697 Bytes
Versions: 2
Compression:
Stored size: 697 Bytes
Contents
require 'rails/generators' require 'active_support/secure_random' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
errplane-0.1.6 | lib/rails/generators/errplane/errplane_generator.rb |
errplane-0.1.5 | lib/rails/generators/errplane/errplane_generator.rb |