Sha256: 943783ccbb8bf5dd55ff3f43a77cea71278e6621d3ecae4de83faec68274d640
Contents?: true
Size: 1021 Bytes
Versions: 3
Compression:
Stored size: 1021 Bytes
Contents
# Defines deploy:notify_errornot which will send information about the deploy to Errornot. Capistrano::Configuration.instance(:must_exist).load do after "deploy", "deploy:notify_errornot" after "deploy:migrations", "deploy:notify_errornot" namespace :deploy do desc "Notify Errornot of the deployment" task :notify_errornot, :except => { :no_release => true } do # TODO : reactivate it when rake deploy define # rails_env = fetch(:errornot_env, fetch(:rails_env, "production")) # local_user = ENV['USER'] || ENV['USERNAME'] # executable = RUBY_PLATFORM.downcase.include?('mswin') ? 'rake.bat' : 'rake' # notify_command = "#{executable} errornot:deploy TO=#{rails_env} REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}" # notify_command << " API_KEY=#{ENV['API_KEY']}" if ENV['API_KEY'] # puts "Notifying Errornot of Deploy (#{notify_command})" # `#{notify_command}` puts "Errornot Notification Complete." end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
errornot_notifier-1.1.1 | lib/errornot_notifier/capistrano.rb |
errornot_notifier-1.1.0 | lib/errornot_notifier/capistrano.rb |
errornot_notifier-1.0.2 | lib/errornot_notifier/capistrano.rb |