Sha256: 617ac0f4a355da790bf0d06e98f53a97977c51c86e39c6129670134bd626f200
Contents?: true
Size: 757 Bytes
Versions: 8
Compression:
Stored size: 757 Bytes
Contents
# redefine the notify task without after hooks, so we can use them in # specific stages only. namespace :hoptoad do desc "Notify Hoptoad of the deployment" task :notify, :except => { :no_release => true } do rails_env = fetch(:hoptoad_env, fetch(:rails_env, "production")) local_user = ENV['USER'] || ENV['USERNAME'] executable = fetch(:rake, 'rake') notify_command = "#{executable} 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'] puts "Notifying Hoptoad of Deploy (#{notify_command})" `#{notify_command}` puts "Hoptoad Notification Complete." end end
Version data entries
8 entries across 8 versions & 1 rubygems