Sha256: e15e867e901fe87ee20ff738eccf0434c8c5a3e5b125884df2ed8a4f29901fc7
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 Bytes
Contents
require 'toadhopper' Capistrano::Configuration.instance(:must_exist).load do after 'deploy', 'deploy:notify_airbrake' after 'deploy:migrations', 'deploy:notify_airbrake' namespace :deploy do desc 'Notify Airbrake of the deployment' task :notify_airbrake, :except => {:no_release => true} do framework_env = fetch(:rails_env, fetch(:airbrake_env, 'production')) api_key = fetch(:airbrake_api_key) || fetch(:hoptoad_api_key) puts 'Notifying Airbrake of deploy' options = {:framework_env => framework_env, :scm_revision => current_revision, :scm_repository => repository} Toadhopper(api_key).deploy!(options) puts 'Airbrake notification complete' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
toadhopper-2.0 | lib/toadhopper/capistrano.rb |