Sha256: 967fc24d7980b33cfe227a9ab5e634f6720db816b5b6125d3fc6bbb1cac2821c
Contents?: true
Size: 704 Bytes
Versions: 6
Compression:
Stored size: 704 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
6 entries across 6 versions & 1 rubygems