Hi
! love whenever but in a clever-only-to-me move I'm tried to generate a cron file with erb placeholders.
It is because I'm plan to feed the whenever generated file to erb in order to fill these placeholders.
There are so many of them and there are some stored as arrays in my stuff that's because I'm not using the "set" to copy my actual variables. (a matter of lazyness perhaps, but that's another way to say do not repeat yourself)
So my problem is that whenerver scapes the ' and the % which I plan to be erb code.
So... Is it possible to tell whenever in schedule.erb not to scape ' and % in a string?
someting like:
every 2.day, at: "00:00" do
command "curl
http://localhost:8080/cron.php?cron_key=" + do_not_scape_for_cron_this_stuff('<%= secrets[stage]['drupal']['cron_key'] %>')
end
Many thanks