Sha256: 748f8d8e6ad7760112b6bbeaf69337e3e464233c9df45f5cf65db6de2c49eec9

Contents?: true

Size: 729 Bytes

Versions: 2

Compression:

Stored size: 729 Bytes

Contents

module DiscoApp
  module Generators
    class MonitorifyGenerator < Rails::Generators::Base

      source_root File.expand_path('../templates', __FILE__)

      # Install the Rollbar, OJ and New Relic gems.
      def install_gems
        # Add gem to Gemfile
        gem 'rollbar', '~> 2.7.1'
        gem 'oj', '~> 2.14.3'
        gem 'newrelic_rpm', '~> 3.14.1.311'

        # Install gem.
        Bundler.with_clean_env do
          run 'bundle install'
        end
      end

      # Copy Rollbar initializer and New Relic config file.
      def configure
        copy_file 'initializers/rollbar.rb', 'config/initializers/rollbar.rb'
        copy_file 'config/newrelic.yml', 'config/newrelic.yml'
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
disco_app-0.8.2 lib/generators/disco_app/monitorify/monitorify_generator.rb
disco_app-0.8.3 lib/generators/disco_app/monitorify/monitorify_generator.rb