Skip to content

Commit

Permalink
Agent release 2.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Kayser committed Feb 14, 2009
1 parent 23d7165 commit 06634fc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README
Expand Up @@ -38,7 +38,7 @@ http://localhost:3000/newrelic
=== PRODUCTION MODE === PRODUCTION MODE


To monitor your applications in production, create an account at 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 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 runs in production mode. It connects to the New Relic RPM service and sends deep
Expand Down
23 changes: 13 additions & 10 deletions lib/new_relic/recipes.rb
Expand Up @@ -40,10 +40,10 @@
end end
new_revision = rev || source.query_revision(source.head()) { |cmd| `#{cmd}` } new_revision = rev || source.query_revision(source.head()) { |cmd| `#{cmd}` }
deploy_options = { :environment => rails_env, deploy_options = { :environment => rails_env,
:revision => new_revision, :revision => new_revision,
:changelog => changelog, :changelog => changelog,
:description => description, :description => description,
:appname => appname } :appname => appname }
logger.debug "Uploading deployment to New Relic" logger.debug "Uploading deployment to New Relic"
deployment = NewRelic::Commands::Deployments.new deploy_options deployment = NewRelic::Commands::Deployments.new deploy_options
deployment.run deployment.run
Expand All @@ -62,10 +62,13 @@
end end
end end
end end

if Capistrano::Version::MAJOR < 2
instance = Capistrano::Configuration.instance STDERR.puts "Unable to load #{__FILE__}\nNew Relic Capistrano hooks require at least version 2.0.0"
if instance
instance.load &make_notify_task
else else
make_notify_task.call instance = Capistrano::Configuration.instance
end if instance
instance.load &make_notify_task
else
make_notify_task.call
end
end
2 changes: 1 addition & 1 deletion newrelic_rpm.gemspec
Expand Up @@ -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.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Bill Kayser"] s.authors = ["Bill Kayser"]
s.date = %q{2009-02-10} s.date = %q{2009-02-14}
s.default_executable = %q{newrelic_cmd} s.default_executable = %q{newrelic_cmd}
s.description = %q{New Relic Ruby Performance Monitoring Agent} s.description = %q{New Relic Ruby Performance Monitoring Agent}
s.email = %q{bkayser@newrelic.com} s.email = %q{bkayser@newrelic.com}
Expand Down

0 comments on commit 06634fc

Please sign in to comment.