Sha256: c0c68d05f187c999c399e85e91364ba5e1c35af63b5e84907391ee94f2963e49
Contents?: true
Size: 799 Bytes
Versions: 11
Compression:
Stored size: 799 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
11 entries across 11 versions & 1 rubygems