Skip to content

Commit c2b5814

Browse files
authored
Merge pull request #777 from samuelokrent/master
Splat whenever_roles when passing to roles
2 parents c44b440 + d68f4a7 commit c2b5814

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
* Removes support for versions of Ruby which are no longer supported by the Ruby project.
88

9+
* Bugfix: Splat `whenever_roles` when passing to `roles` to allow definition of multiple whenever roles [samuelokrent](https://github.com/javan/whenever/pull/777)
10+
911
### 0.11.0 / April 23, 2019
1012

1113
* Add support for mapping Range objects to cron range syntax [Tim Craft](https://github.com/javan/whenever/pull/725)

lib/whenever/capistrano/v3/tasks/whenever.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace :whenever do
22
def setup_whenever_task(*args, &block)
33
args = Array(fetch(:whenever_command)) + args
44

5-
on roles fetch(:whenever_roles) do |host|
5+
on roles *fetch(:whenever_roles) do |host|
66
args_for_host = block_given? ? args + Array(yield(host)) : args
77
within fetch(:whenever_path) do
88
with fetch(:whenever_command_environment_variables) do

0 commit comments

Comments
 (0)