Skip to content

Commit

Permalink
updates to cronjob recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
onema committed Oct 31, 2013
1 parent 3a591c0 commit 8ac13c8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cronjobs/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
node[:deploy].each do |application, deploy|

node[:custom_env][application.to_s][:cron_jobs].each do |cron_values|
value_minute = cron_values[:minute] rescue '*'
value_hour = cron_values[:hour] rescue '*'
value_day = cron_values[:day] rescue '*'
value_month = cron_values[:month] rescue '*'
value_weekday= cron_values[:weekday] rescue '*'
# value_minute = cron_values[:minute] rescue '*'
# value_hour = cron_values[:hour] rescue '*'
# value_day = cron_values[:day] rescue '*'
# value_month = cron_values[:month] rescue '*'
# value_weekday= cron_values[:weekday] rescue '*'

cron "#{cron_values[:name]}" do
minute "#{value_minute.to_s}"
hour "#{value_hour.to_s}"
day "#{value_day.to_s}"
month "#{value_month.to_s}"
weekday "#{value_weekday.to_s}"
minute "#{cron_values[:minute]}"
hour "#{cron_values[:hour]}"
day "#{cron_values[:day]}"
month "#{cron_values[:month]}"
weekday "#{cron_values[:weekday]}"
command "#{cron_values[:command]}"
end
end
Expand Down

0 comments on commit 8ac13c8

Please sign in to comment.