Peer Allan
3e20f936eb
Added --cut option to the command line to allow pruning of the crontab
2010-09-10 09:32:48 +08:00
Javan Makhmali
f17c8d8cd2
consolidated tests - moving away from testing on runners, rakes, etc. now that jobs are definable. added more units tests for Jobs.
2010-09-06 23:38:11 -04:00
Javan Makhmali
27827c8e17
Cleaned up requirements, paths, test structure
2010-09-06 13:18:39 -04:00
Javan Makhmali
1472fecc4b
cleaned up quote escaping a little
2010-07-07 18:55:14 -04:00
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
Jay Adkisson
df9590e6a5
ignore vim metafiles
2010-07-03 22:55:32 +08:00
Javan Makhmali
505a0b4075
attempting to escape quotes
2010-07-02 17:39:17 -04:00
Javan Makhmali
e12d3436d6
automatically escape :task in single or double quotes
2010-07-01 17:04:11 -04:00
Javan Makhmali
3796828fb6
preparing for 0.5.0 release
2010-06-28 16:41:41 -04:00
Javan Makhmali
2db7ebb818
removed 'old' job_type explanation
2010-06-28 16:28:22 -04:00
Javan Makhmali
ad7a82b02c
wording change and added info about job_type to README
2010-06-28 16:22:16 -04:00
Michael Raidel
8faf291369
clear the crontab
2010-06-29 03:25:04 +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
Javan Makhmali
f31148d27d
adds user definable job types and uses the new API for these to define the original command, runner, and rake commands
2010-06-28 15:14:01 -04:00
Javan Makhmali
c2e0320d2a
use Dir.pwd as default path instead of loading Rails and getting the Rails.root
2010-06-24 13:51:17 -04:00
Javan Makhmali
8565a6547c
require rakefile again
2010-06-11 11:35:00 -04:00
Damien
3910dd6eac
Forgot to mention the quote_task setting in the README file
2010-06-11 23:31:09 +08:00
Damien
b664c037e4
Handle job_type settings more gracefully and allow quoting of the task to be supressed
2010-06-11 23:31:09 +08:00
Damien
7e6a199b8b
Writing some tests for user defined jobs and changing job.environment option to job.no_environment so it plays nicely with the environment settings from the parent class
2010-06-11 23:31:09 +08:00
Damien
b0ce52fa55
Tiny readme change
2010-06-11 23:31:09 +08:00
Damien
8a84433a5f
Adding a short explanation about custom job type creation to the readme
2010-06-11 23:31:09 +08:00
Damien
480a0a9e04
Allow creation of new job types from within schedule.rb. Not only does this make it easier to define app-specific job types such as the new rails 3 runner, or jobs which need to run under bundler, but it also allows the user to create reusable system commands rather than using the :command method every time.
2010-06-11 23:31:08 +08:00
Damien
8fdd66adc0
Use rails 3 style runner
2010-06-11 23:31:08 +08:00
Damien
50fc55dbef
A couple of small changes so whenever plays nice with rails 3.. Don't load up the Rakefile and use the new syntax for getting rails root
2010-06-11 23:31:08 +08:00
Javan Makhmali
c2e4c6e68d
updated gemspec. bumped version.
2010-04-26 12:26:23 -04:00
Javan Makhmali
4a050ec07c
updated changelog
2010-04-26 12:21:45 -04:00
Javan Makhmali
4ddb2c15ff
Merge branch 'integration' of github.com:javan/whenever into integration
2010-04-26 12:09:49 -04:00
Javan Makhmali
e94d332114
updated readme
2010-04-26 12:09:40 -04:00
Dan Hixon
efd3dd752e
bugfix: http://github.com/javan/whenever/issues#issue/32 - comparison Time with 0 failed
2010-04-27 00:08:26 +08:00
Javan Makhmali
00c42aca1d
move fileutils require too
2010-04-26 11:44:53 -04:00
Javan Makhmali
37aac75a46
Merge branch 'integration' of github.com:javan/whenever into integration
2010-04-26 11:38:54 -04:00
Finn Smith
e3ea5d6336
Move require of tempfile lib to file that actually uses it.
2010-04-26 23:38:36 +08:00
Javan Makhmali
bfbc62eacb
Merge branch 'integration' of github.com:javan/whenever into integration
2010-04-26 10:56:50 -04:00
tma
1069cb7c48
fix STDERR output redirection to file to append instead of overwrite.
2010-04-26 22:56:38 +08:00
Javan Makhmali
19c9bbd32e
require active_support/all. fix #52
2010-04-26 10:48:50 -04: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
22d34a538d
updated docs, bumped version
2009-11-30 14:45:03 -05:00
Javan Makhmali
6ba4a237ed
fixed test by using unambiguous month
2009-11-30 14:34:58 -05:00
Elan Meng
4458855364
ad default code, Jruby sucks
2009-12-01 03:08:29 +08:00
Andrew Nesbitt
cc2993f1be
Fixed activesupport deprecation warning
2009-12-01 03:07:30 +08:00
Javan Makhmali
9968a75e51
using jeweler, lots of cleanup, updates to readme, etc.
2009-10-20 15:54:09 -04:00
Javan Makhmali
8386e6a417
Version bump to 0.5.0
2009-10-20 14:41:51 -04:00
Javan Makhmali
4a25f078c8
Version bump to 0.4.1
2009-10-20 14:41:44 -04:00
Javan Makhmali
eb7da47013
Version bump to 0.0.0
2009-10-20 14:24:46 -04:00
Javan Makhmali
b84c8a8f0b
moved everthing into a whenever/ dir
2009-10-20 13:42:09 -04:00
Javan Makhmali
295cabe56c
added new output redirection features, moved most of it into a new class.
2009-10-20 11:52:09 -04:00
Peer Allan
be38dd1139
Added output redirection support
...
* replaced cron_log option with output
* setting output to nil explicitly redirects to /dev/null
* updated Readme and wheneverize template with examples
2009-10-18 06:49:16 +08:00
Javan Makhmali
53b92aa84b
bump to version 0.3.7
2009-09-04 17:14:35 -04:00
Javan Makhmali
6bf363b723
don't try to combine @shortcut jobs
2009-09-04 16:48:33 -04:00
Javan Makhmali
51a6b3720a
Sets the PATH automatically unless it's already provided or told not to.
2009-07-15 15:37:03 -04:00