diff --git a/lib/whenever/capistrano/v3/tasks/whenever.rake b/lib/whenever/capistrano/v3/tasks/whenever.rake index d8aa6663..09098455 100644 --- a/lib/whenever/capistrano/v3/tasks/whenever.rake +++ b/lib/whenever/capistrano/v3/tasks/whenever.rake @@ -3,6 +3,7 @@ namespace :whenever do args = Array(fetch(:whenever_command)) + args on roles fetch(:whenever_roles) do |host| + next if host.nil? args_for_host = block_given? ? args + Array(yield(host)) : args within release_path do with fetch(:whenever_command_environment_variables) do