Sha256: 4120a0b946979f02e7ff12c8330b038d70b3e7401613e34996b3de63e1b68c0b

Contents?: true

Size: 801 Bytes

Versions: 7

Compression:

Stored size: 801 Bytes

Contents

# frozen_string_literal: true

namespace :airbrake do
  desc "Notify Airbrake of the deploy"
  task :deploy do
    role = roles(:all, select: :primary).first || roles(:all).first
    on role do
      within release_path do
        with rails_env: fetch(:rails_env, fetch(:stage)) do
          execute :bundle, :exec, :rake, <<-CMD
            airbrake:deploy USERNAME=#{Shellwords.shellescape(local_user)} \
                            ENVIRONMENT=#{fetch(:airbrake_env, fetch(:rails_env, fetch(:stage)))} \
                            REVISION=#{fetch(:current_revision)} \
                            REPOSITORY=#{fetch(:repo_url)} \
                            VERSION=#{fetch(:app_version)}
            CMD

          info 'Notified Airbrake of the deploy'
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
airbrake-10.0.6 lib/airbrake/capistrano/capistrano3.rb
airbrake-10.1.0.rc.1 lib/airbrake/capistrano/capistrano3.rb
airbrake-10.0.5 lib/airbrake/capistrano/capistrano3.rb
airbrake-10.0.4 lib/airbrake/capistrano/capistrano3.rb
airbrake-10.0.3 lib/airbrake/capistrano/capistrano3.rb
airbrake-10.0.2 lib/airbrake/capistrano/capistrano3.rb
airbrake-10.0.1 lib/airbrake/capistrano/capistrano3.rb