Sha256: aacd9ac237c224da2c3b4b1d6e360e0ca88e947e4079828a15811666a64b108b

Contents?: true

Size: 690 Bytes

Versions: 135

Compression:

Stored size: 690 Bytes

Contents

namespace :appsignal do
  task :deploy do
    env = fetch(:rails_env, fetch(:rack_env, 'production'))
    user = ENV['USER'] || ENV['USERNAME']
    revision = fetch(:appsignal_revision, fetch(:current_revision))
    logger = fetch(:logger, Logger.new($stdout))

    appsignal_config = Appsignal::Config.new(
      ENV['PWD'],
      env,
      fetch(:appsignal_config, {}),
      logger
    )

    if appsignal_config && appsignal_config.active?
      marker_data = {
        :revision => revision,
        :user => user
      }

      marker = Appsignal::Marker.new(marker_data, appsignal_config, logger)
      marker.transmit
    end
  end
end

after 'deploy:finished', 'appsignal:deploy'

Version data entries

135 entries across 135 versions & 1 rubygems

Version Path
appsignal-0.12.beta.12 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.12.beta.11 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.12.beta.9 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.11.13.beta.1 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.11.13.beta.0 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.12.beta.8 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.11.12 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.12.beta.7 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.12.beta.6 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.12.beta.5 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.12.beta.4 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.12.beta.3 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.12.beta.2 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.12.beta.1 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.11.11 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.12.beta.0 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.11.10 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.11.10.beta.2 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.11.10.beta.1 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-0.11.9 lib/appsignal/integrations/capistrano/appsignal.cap