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

Version Path
appsignal-1.3.0.beta.2 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.3.0.beta.1 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.5 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.4 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.4.beta.4 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.4.beta.3 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.4.beta.2 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.4.beta.1 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.3 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.3.beta.3 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.3.beta.2 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.3.beta.1 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.2 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.1 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.1.beta.3 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.1.beta.2 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.1.beta.1 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.0 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.0.beta.1 lib/appsignal/integrations/capistrano/appsignal.cap
appsignal-1.2.0.alpha.6 lib/appsignal/integrations/capistrano/appsignal.cap