From c7e77dcb46cf8b9fa7c608fed34bd0fc81953171 Mon Sep 17 00:00:00 2001 From: rhomeister Date: Fri, 13 Feb 2015 03:21:44 +0100 Subject: [PATCH] don't crash on non-existing roles --- lib/whenever/capistrano/v3/tasks/whenever.rake | 1 + 1 file changed, 1 insertion(+) 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