Class: Keel::Notifier::NewRelic
- Defined in:
- lib/keel/notifier/new_relic.rb
Overview
Notifier for NewRelic that send a deployment notification.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#notify ⇒ Object
Sends a notification to NewRelic of a new deployment with the appropriate attributes.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Keel::Notifier::Base
Instance Method Details
#notify ⇒ Object
Sends a notification to NewRelic of a new deployment with the appropriate attributes.
11 12 13 14 |
# File 'lib/keel/notifier/new_relic.rb', line 11 def notify env = @env == 'production' ? 'production' : 'staging' @cli.system_call "newrelic deployments -e #{env} -r #{@sha} -u #{@user}" end |