Sha256: b534fd0c2104717fd5abee849d0259090955cf0246c57acb119f30dda7df3cc6
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
require 'capistrano' module Appsignal module Integrations class Capistrano def self.tasks(config) config.load do after 'deploy', 'appsignal:deploy' after 'deploy:migrations', 'appsignal:deploy' namespace :appsignal do task :deploy do env = fetch(:rails_env, fetch(:rack_env, 'production')) user = ENV['USER'] || ENV['USERNAME'] appsignal_config = Appsignal::Config.new( ENV['PWD'], env, logger ) if appsignal_config && appsignal_config.active? marker_data = { :revision => current_revision, :repository => repository, :user => user } marker = Marker.new(marker_data, appsignal_config, logger) if config.dry_run logger.info('Dry run: Deploy marker not actually sent.') else marker.transmit end end end end end end end end end if ::Capistrano::Configuration.instance Appsignal::Integrations::Capistrano.tasks(::Capistrano::Configuration.instance) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appsignal-0.8.3.beta.1 | lib/appsignal/integrations/capistrano.rb |