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