Skip to content

Commit

Permalink
Fix duplicated args
Browse files Browse the repository at this point in the history
  • Loading branch information
javan committed Oct 23, 2014
1 parent 2b4e03a commit 3e9cbcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/whenever/capistrano/v3/tasks/whenever.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ namespace :whenever do
args = Array(fetch(:whenever_command)) + args

on roles fetch(:whenever_roles) do |host|
args = args + Array(yield(host)) if block_given?
args_for_host = block_given? ? args + Array(yield(host)) : args
within release_path do
with fetch(:whenever_command_environment_variables) do
execute *args
execute *args_for_host
end
end
end
Expand Down

0 comments on commit 3e9cbcb

Please sign in to comment.