Sha256: 72ccb6daf2d71b02c3ed13b5a8043eac9139332016a289fe2e1e03b78094451f
Contents?: true
Size: 734 Bytes
Versions: 46
Compression:
Stored size: 734 Bytes
Contents
namespace :appsignal do task :deploy do env = fetch(:stage, fetch(:rails_env, fetch(:rack_env, 'production'))) user = ENV['USER'] || ENV['USERNAME'] revision = fetch(:appsignal_revision, fetch(:current_revision)) appsignal_config = Appsignal::Config.new( ENV['PWD'], env, fetch(:appsignal_config, {}), Logger.new(StringIO.new) ) if appsignal_config && appsignal_config.active? marker_data = { :revision => revision, :user => user } marker = Appsignal::Marker.new(marker_data, appsignal_config) marker.transmit else puts 'Not notifying of deploy, config is not active' end end end after 'deploy:finished', 'appsignal:deploy'
Version data entries
46 entries across 46 versions & 1 rubygems