Sha256: feeb85fd0abc7791822187d381c3beab377fa7ce82999a58653128f2ff43bc9d

Contents?: true

Size: 705 Bytes

Versions: 20

Compression:

Stored size: 705 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))
    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

20 entries across 20 versions & 1 rubygems

Version Path
appsignal-1.1.1 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.1.1.beta.1 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.1.0.beta.13 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.1.0.beta.12 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.0.7 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.0.6 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.1.0.beta.11 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.0.6.beta.4 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.1.0.beta.10 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.0.6.beta.3 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.1.0.beta.9 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.0.6.beta.2 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.1.0.beta.8 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.0.6.beta.1 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.0.5 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.1.0.beta.7 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.0.5.beta.4 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.0.5.beta.3 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.0.5.beta.2 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.0.5.beta.1 lib/appsignal/integrations/capistrano/appsignal.cap