Sha256: 40d5a27164b3c9a1d6c6aa823d25ed3470252f1c748fc93da0e35c8200d136cc
Contents?: true
Size: 725 Bytes
Versions: 2
Compression:
Stored size: 725 Bytes
Contents
require "bugsnag" namespace :bugsnag do desc "Notify Bugsnag of a new deploy." task :deploy do api_key = ENV["BUGSNAG_API_KEY"] release_stage = ENV["BUGSNAG_RELEASE_STAGE"] app_version = ENV["BUGSNAG_APP_VERSION"] revision = ENV["BUGSNAG_REVISION"] repository = ENV["BUGSNAG_REPOSITORY"] branch = ENV["BUGSNAG_BRANCH"] Rake::Task["load"].invoke unless api_key Bugsnag::Capistrano::Deploy.notify({ :api_key => api_key, :release_stage => release_stage, :app_version => app_version, :revision => revision, :repository => repository, :branch => branch }) end end task :load do begin Rake::Task["environment"].invoke rescue end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bugsnag-capistrano-1.0.1 | lib/bugsnag-capistrano/tasks/bugsnag-capistrano.rake |
bugsnag-capistrano-1.0.0 | lib/bugsnag-capistrano/tasks/bugsnag-capistrano.rake |