Skip to content

Commit

Permalink
[COOK-3034] Allow script parameters to be multiline Strings or Arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Oct 4, 2013
1 parent 61a9ea6 commit ffa2c06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions definitions/logrotate_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
:rotate => params[:rotate],
:olddir => params[:olddir],
:sharedscripts => params[:sharedscripts],
:postrotate => params[:postrotate],
:prerotate => params[:prerotate],
:firstaction => params[:firstaction],
:lastaction => params[:lastaction],
:postrotate => Array(params[:postrotate]).join("\n"),
:prerotate => Array(params[:prerotate]).join("\n"),
:firstaction => Array(params[:firstaction]).join("\n"),
:lastaction => Array(params[:lastaction]).join("\n"),
:options => options
)
notifies :reload, 'service[logrotate]', :delayed
Expand Down

0 comments on commit ffa2c06

Please sign in to comment.