Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Agent release 2.8.3

  • Loading branch information...
commit 06634fc99fce6d8b7c740ec71efaf60a93d2f615 1 parent 23d7165
@bkayser bkayser authored
Showing with 15 additions and 12 deletions.
  1. +1 −1  README
  2. +13 −10 lib/new_relic/recipes.rb
  3. +1 −1  newrelic_rpm.gemspec
View
2  README
@@ -38,7 +38,7 @@ http://localhost:3000/newrelic
=== PRODUCTION MODE
To monitor your applications in production, create an account at
-http://newrelic.com/get-RPM.htm
+http://newrelic.com/get-RPM.html
When your application runs in the production environment, the New Relic agent
runs in production mode. It connects to the New Relic RPM service and sends deep
View
23 lib/new_relic/recipes.rb
@@ -40,10 +40,10 @@
end
new_revision = rev || source.query_revision(source.head()) { |cmd| `#{cmd}` }
deploy_options = { :environment => rails_env,
- :revision => new_revision,
- :changelog => changelog,
- :description => description,
- :appname => appname }
+ :revision => new_revision,
+ :changelog => changelog,
+ :description => description,
+ :appname => appname }
logger.debug "Uploading deployment to New Relic"
deployment = NewRelic::Commands::Deployments.new deploy_options
deployment.run
@@ -62,10 +62,13 @@
end
end
end
-
-instance = Capistrano::Configuration.instance
-if instance
- instance.load &make_notify_task
+if Capistrano::Version::MAJOR < 2
+ STDERR.puts "Unable to load #{__FILE__}\nNew Relic Capistrano hooks require at least version 2.0.0"
else
- make_notify_task.call
-end
+ instance = Capistrano::Configuration.instance
+ if instance
+ instance.load &make_notify_task
+ else
+ make_notify_task.call
+ end
+end
View
2  newrelic_rpm.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Bill Kayser"]
- s.date = %q{2009-02-10}
+ s.date = %q{2009-02-14}
s.default_executable = %q{newrelic_cmd}
s.description = %q{New Relic Ruby Performance Monitoring Agent}
s.email = %q{bkayser@newrelic.com}
Please sign in to comment.
Something went wrong with that request. Please try again.