John Bintz
905558da45
check instead to see if stdin is not a tty for triggering pipe
2011-09-06 09:30:12 -04:00
John Bintz
919dbe09ef
allow piping of crontab from stdin to stdout
2011-08-19 11:40:23 -04:00
Javan Makhmali
ab877e3cbb
improve eval'ing of schedule file to reveal the filename in backtraces
2011-07-31 14:16:23 -04:00
Javan Makhmali
8bb0f04131
formatting
2011-07-31 09:33:16 -04:00
Javan Makhmali
15d91a3efd
prefer autoload to require
2011-07-31 09:27:18 -04:00
Michał Szajbe
439a13644c
run rake through bundler if possible
2011-07-19 10:19:13 +02:00
Michał Szajbe
b405def424
encapsulate rails 3 check for easier testing
2011-07-19 10:18:33 +02:00
Chris Griego
98ae96a2af
Capistrano enhancements
...
* Use fetch(:variable) to avoid collisions with namespaces
* Default :whenever_environment to the :rails_env variable
* Document the Capistrano tasks
* Apply whenever_roles at runtime so the variable can be set after the recipe is loaded
* Add transaction rollback support to the update_crontab task
2011-05-24 23:54:34 -05:00
Javan Makhmali
1214114c40
bump version
2011-05-24 22:12:32 -04:00
Javan Makhmali
56ab2cba32
require thread
2011-05-24 22:07:14 -04:00
Javan Makhmali
5f7253ccc3
Output no update message as comments.
2011-05-24 22:01:31 -04:00
Javan Makhmali
cc6bafb37a
allow comma in raw cron syntax
2011-05-23 22:23:42 -04:00
Javan Makhmali
1654f67774
convert most shortcuts to seconds
2011-05-23 21:08:43 -04:00
Javan Makhmali
a3b5791bbb
Whenever v0.6.7
2011-03-23 22:09:21 -04:00
Javan Makhmali
6305ab0d8e
removed -i from default job_template
2011-03-23 22:03:43 -04:00
Jeremy Lingmann
3cf92a44c2
Require that the comment identifiers are always on a line by themselves, but allow for whitespace after the identifier.
2011-03-10 22:30:11 -08:00
Jeremy Lingmann
971854528b
Revert "Don't anchor the regexp to EOL to fix matching issues that were causing the entire block of crontab entries to appear twice in the crontab. This could be due to the way cron is adding newlines or some other post-processing that occurs on the cron. This bug was reproduced in the following environment: Ubuntu 10.04.2 LTS, rvm 1.0.14, ruby 1.8.7 patchlevel 253, capistrano 2.5.19, capistrano-ext 1.2.1, bundler 1.0.10"
...
This reverts commit 1f11510d87
.
2011-03-10 22:00:41 -08:00
Jeremy Lingmann
7dd0a046ae
Fixing issue with prepare method. The issue was that [stripped_contents.length..-1] was not capturing the trailing contents as expected. Instead it was grabbing the last 2 characters of my identifier block and then tacking those 2 characters back on to the end. In short, .length and the range operator are not behaving consistently on the input.
2011-03-10 21:50:50 -08:00
Jeremy Lingmann
1f11510d87
Don't anchor the regexp to EOL to fix matching issues that were causing the entire block of crontab entries to appear twice in the crontab. This could be due to the way cron is adding newlines or some other post-processing that occurs on the cron. This bug was reproduced in the following environment: Ubuntu 10.04.2 LTS, rvm 1.0.14, ruby 1.8.7 patchlevel 253, capistrano 2.5.19, capistrano-ext 1.2.1, bundler 1.0.10
2011-03-10 18:06:43 -08:00
Javan Makhmali
96fc6eb4dc
fix unclosed identifier bug. #119
2011-03-08 19:47:43 -06:00
Javan Makhmali
2a89d79a28
Ditched Jeweler in favor of a self-managed gemspec with the Bundler helpers.
2011-03-06 21:32:49 -05:00
Javan Makhmali
59e7c31093
add message when just outputting schedule file
2011-03-06 21:10:03 -05:00
Javan Makhmali
a94dda4b8b
allow raw cron sytanx
2011-03-06 17:31:17 -05:00
Javan Makhmali
6b69ebd10f
added :whenever_environment to cap task for easier multistage support
2011-03-06 16:39:52 -05:00
Javan Makhmali
4b98f064eb
add -i to the bash job template
2011-03-06 16:17:36 -05:00
Javan Makhmali
006a1d963b
Merge branch 'master' of https://github.com/teejayvanslyke/whenever into teejayvanslyke-master
2011-03-06 16:11:49 -05:00
teejayvanslyke
fe022bb1c6
Setting nil or blank environment variables now properly formats output
...
as ENVVAR="" instead of ENVVAR=.
2010-12-07 10:12:08 -08:00
Rich Meyers
c4abbefe00
Preserve whitespace at the end of crontab contents (issue #95 )
2010-11-01 17:07:09 -04:00
Javan Makhmali
ca10a69e83
Release v0.6.2
2010-10-26 10:41:01 -04:00
Javan Makhmali
974b5a2016
job type defaults are now in setup.rb
2010-10-26 09:59:24 -04:00
Javan Makhmali
9f73bcb469
set environment and path earlier so schedule files do conditionals with them
2010-10-25 21:14:45 -04:00
Javan Makhmali
b255926e05
Don't leave Whenever comments when clearing
2010-10-25 21:04:17 -04:00
Javan Makhmali
20faaa266d
Don't leave Whenever comments when clearing
2010-10-25 21:03:49 -04:00
Javan Makhmali
2060cb95fa
removed base.rb
2010-10-25 20:41:57 -04:00
Javan Makhmali
395bcf6955
bad release; trying again..
2010-10-20 17:39:39 -04:00
Javan Makhmali
645a4af994
Releasing v0.6.0 with better Rails 3 and RVM support.
2010-10-20 17:34:36 -04:00
Javan Makhmali
3e7e7f1401
fixed conflict
2010-10-20 17:13:09 -04:00
Javan Makhmali
e66226e3ae
created a new :job_template to wrap all commands with. using 'bash -l -c' by default now to load the entire enviroment which should help with RVM issues.
2010-10-20 17:12:00 -04:00
Javan Makhmali
2effe0b32d
fixed conflict
2010-10-19 17:50:40 -04:00
Javan Makhmali
ff0d68af55
don't worry about preserving the Rails 2 runner job_type if this is a Rails 3 app
2010-10-19 17:37:10 -04:00
Javan Makhmali
953987c6b2
moved output redirection to the Job class and subing it in from the job templates
2010-10-19 13:53:41 -04:00
Javan Makhmali
4e0c357f4d
check if runner is defined before aliasing it
2010-10-19 09:19:34 -04:00
Javan Makhmali
436255e4a5
added a built-in capistrano recipe
2010-10-18 18:51:27 -04:00
Javan Makhmali
0055c36aef
runners for Rails 3
2010-10-18 12:08:28 -04:00
Javan Makhmali
e7e4a37b3a
drop /usr/bin/env from rake job - let PATH do the work. added --silent flag to rake job tosupress the 'in directory' message.
2010-10-18 10:41:00 -04:00
Javan Makhmali
9c96e7c16b
Fixed regex related bugs. Release v0.5.3
2010-09-24 13:41:05 -04:00
Javan Makhmali
a3d2da903d
Release v0.5.2
2010-09-15 22:21:54 -04:00
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