Commit Graph

11 Commits

Author SHA1 Message Date
Jay Adkisson
dd15137e41 escape quotes for bash, furrealz this time
Any parameter in a job type template which is surrounded by quotes
will now be auto-escaped.

Examples:

job_type :foo, :template => "/my/cool/bin ':bar'"

every :day do
  foo %(single quote! -> ' <-)
end

will render to

@daily /my/cool/bin 'single quote! -> '\'' <-'
2010-07-03 22:55:32 +08:00
Gerrit Riessen
087119ce2d Allow the specification of an offset (using :at => [1-59]) when using
every( X.minutes ) { ... } for job definition. For example:

 every 5.minutes, :at => 1 do
          command "blahblah"
 end

produces

 1,6,11,16,21,26,31,36,41,46,51,56 * * * * blahblah
2010-06-29 03:20:32 +08:00
Michael Guterl
cd92f1f4f1 In order to use bundler you must change to the directory where Gemfile exists
* Change runner command to cd to directory prior to running script/runner
2010-04-26 22:41:09 +08:00
Javan Makhmali
6ba4a237ed fixed test by using unambiguous month 2009-11-30 14:34:58 -05:00
Javan Makhmali
6bf363b723 don't try to combine @shortcut jobs 2009-09-04 16:48:33 -04:00
Javan Makhmali
c8c87406f5 Added aligned time tests for runners and rake tasks 2009-07-13 15:43:08 -04:00
Javan Makhmali
2ab3c26f9e Added test for crazy combo of every's and at's 2009-07-13 15:40:02 -04:00
Javan Makhmali
0dff0eb087 cleaned up formatting and wording of tests 2009-07-13 15:17:26 -04:00
Javan Makhmali
c2272dd3ec updated test to check for days using numbers (1-7) instead of strings (mon,wed,tue) 2009-07-01 00:36:06 -04:00
Sam Ruby
5ffc2b48bd Allow multiple times, arrays, and combine results whenever possible
Signed-off-by: Javan Makhmali <javan@javan.us>
2009-07-01 09:08:26 +08:00
Sam Ruby
abab2f8835 Allow multiple ":at" times, separated by commas
Signed-off-by: Javan Makhmali <javan@javan.us>
2009-07-01 09:00:58 +08:00