Sha256: 5351e2b6db29bf240076ea967ce3ccd0f92aab18d6d1f0dc2db9f055184250e0

Contents?: true

Size: 885 Bytes

Versions: 5

Compression:

Stored size: 885 Bytes

Contents

######################################################################
#                       AIRBRAKE NOTIFIER TASKS                      #
######################################################################
Capistrano::Configuration.instance(:must_exist).load do
  after 'deploy:base',       'notify:via_airbrake'

  namespace :notify do
    desc <<-DESC
      [internal] Sends Airbrake information regarding the deployment.
      If you have a paid version of Airbrake, it will resolve all of
      your errors.
    DESC
    task :via_airbrake, :except => { :no_release => true } do
      notify_command = "rake hoptoad:deploy TO=#{rails_env} REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}"
      notify_command << " DRY_RUN=true" if dry_run
      notify_command << " API_KEY=#{ENV['API_KEY']}" if ENV['API_KEY']

      `#{notify_command}`
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chicken_soup-0.8.3 lib/chicken_soup/notifiers/airbrake/airbrake-tasks.rb
chicken_soup-0.8.2 lib/chicken_soup/notifiers/airbrake/airbrake-tasks.rb
chicken_soup-0.8.1 lib/chicken_soup/notifiers/airbrake/airbrake-tasks.rb
chicken_soup-0.8.0 lib/chicken_soup/notifiers/airbrake/airbrake-tasks.rb
chicken_soup-0.6.1 lib/chicken_soup/notifiers/airbrake/airbrake-tasks.rb