Skip to content

Commit

Permalink
Merge pull request #312 from fabn/patch-1
Browse files Browse the repository at this point in the history
Allow custom revision name on deploy
  • Loading branch information
jondeandres committed Oct 5, 2015
2 parents 0a0da3b + 8dbd163 commit 68ed36c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/rollbar/tasks/rollbar.cap
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace :rollbar do
:local_username => fetch(:rollbar_user),
:access_token => fetch(:rollbar_token),
:environment => fetch(:rollbar_env),
:revision => fetch(:current_revision) }
:revision => fetch(:rollbar_revision) }

debug "Building Rollbar POST to #{uri} with #{params.inspect}"

Expand All @@ -36,9 +36,10 @@ end

namespace :load do
task :defaults do
set :rollbar_user, Proc.new { ENV['USER'] || ENV['USERNAME'] }
set :rollbar_env, Proc.new { fetch :rails_env, 'production' }
set :rollbar_token, Proc.new { abort "Please specify the Rollbar access token, set :rollbar_token, 'your token'" }
set :rollbar_role, Proc.new { :app }
set :rollbar_user, Proc.new { ENV['USER'] || ENV['USERNAME'] }
set :rollbar_env, Proc.new { fetch :rails_env, 'production' }
set :rollbar_token, Proc.new { abort "Please specify the Rollbar access token, set :rollbar_token, 'your token'" }
set :rollbar_role, Proc.new { :app }
set :rollbar_revision, Proc.new { fetch :current_revision }
end
end

0 comments on commit 68ed36c

Please sign in to comment.