Class: Keel::Notifier::NewRelic

Inherits:
Base
  • Object
show all
Defined in:
lib/keel/notifier/new_relic.rb

Overview

Notifier for NewRelic that send a deployment notification.

Instance Attribute Summary

Attributes inherited from Base

#cli, #env, #sha, #user

Instance Method Summary collapse

Methods inherited from Base

#initialize, #set_user

Constructor Details

This class inherits a constructor from Keel::Notifier::Base

Instance Method Details

#notifyObject

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