Sha256: fc88f8d78bee14aa0c45e1769fbb71f94996e4e3673116e6634ec1f439e6951e
Contents?: true
Size: 853 Bytes
Versions: 10
Compression:
Stored size: 853 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do after 'deploy', 'deploy:notify_hoptoad' after 'deploy:migrations', 'deploy:notify_hoptoad' namespace :deploy do desc 'Notify Hoptoad of the deployment' task :notify_hoptoad, :except => { :no_release => true } do rails_env = fetch(:hoptoad_env, fetch(:rails_env, 'production')) local_user = ENV['USER'] || ENV['USERNAME'] executable = RUBY_PLATFORM.downcase.include?('mswin') ? 'rake.bat' : 'rake' notify_command = "#{executable} hoptoad:deploy TO=#{rails_env} REPO=#{repository} USER=#{local_user}" notify_command << " API_KEY=#{ENV['API_KEY']}" if ENV['API_KEY'] puts "\n\n### NOTIFY HOPTOAD: Notifying Hoptoad of Deploy (#{notify_command})\n\n" `#{notify_command}` puts 'Hoptoad Notification Complete.' end end end
Version data entries
10 entries across 10 versions & 1 rubygems