Class: Eastrails::Components::NewRelic

Inherits:
Base
  • Object
show all
Defined in:
lib/eastrails/components/new_relic.rb

Instance Method Summary collapse

Methods inherited from Base

#component_installed?, #dir_html_to_haml, #do_if_installed, #file_html_to_haml, #gems, #html_to_haml, #parse_gemfile

Methods inherited from Generator

#initialize

Constructor Details

This class inherits a constructor from Eastrails::Generator

Instance Method Details

#addObject



4
5
6
7
8
9
10
11
12
# File 'lib/eastrails/components/new_relic.rb', line 4

def add
  gem 'newrelic_rpm'
  puts "============================"
  puts "You should do followings manually:"
  puts "- Create an account at http://newrelic.com/. There you can sign up for a free Lite account or one of our paid subscriptions."
  puts "- Go to app setting page, download newrelic.yml"
  puts "- Place this file into your app's config directory, replacing the existing one."
  puts "- Restart your application. In a few minutes, your application will send data to New Relic. Then go to New Relic to monitor your applications in production."
end