Sha256: 89006af1b3716dd4d02cd076ed7eef19d50bfefddbb1de6dc34b38ef8bbfb4f3
Contents?: true
Size: 691 Bytes
Versions: 3
Compression:
Stored size: 691 Bytes
Contents
require 'toadhopper' 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 framework_env = fetch(:rails_env, fetch(:hoptoad_env, 'production')) api_key = fetch(:hoptoad_api_key) puts 'Notifying Hoptoad of deploy' options = {:framework_env => framework_env, :scm_revision => current_revision, :scm_repository => repository} Toadhopper(api_key).deploy!(options) puts 'Hoptoad notification complete' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
toadhopper-1.3 | lib/toadhopper/capistrano.rb |
toadhopper-1.2 | lib/toadhopper/capistrano.rb |
toadhopper-1.1 | lib/toadhopper/capistrano.rb |