Sha256: bfd11cfa446f12abe8cedf4cf9dde8b03645f1d520291b385af4ac4d9348a63e

Contents?: true

Size: 478 Bytes

Versions: 5

Compression:

Stored size: 478 Bytes

Contents

require 'rails/generators'
module ExceptionTrack
  module Generators
    class InstallGenerator < Rails::Generators::Base
      desc "Create ExceptionTrack's base files"
      source_root File.expand_path('../../../../', __FILE__)

      def add_initializer
        template 'config/initializers/exception-track.rb', 'config/initializers/exception-track.rb'
      end

      def add_migrations
        exec('rake exception_track:install:migrations')
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
exception-track-0.2.0 lib/generators/exception_track/install_generator.rb
exception-track-0.1.5 lib/generators/exception_track/install_generator.rb
exception-track-0.1.4 lib/generators/exception_track/install_generator.rb
exception-track-0.1.3 lib/generators/exception_track/install_generator.rb
exception-track-0.1.2 lib/generators/exception_track/install_generator.rb