Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #230 from richo/correct_versions

Correct versions
  • Loading branch information...
commit 28946b926e6a966b94febf1a585649c49d86b796 2 parents be00b03 + b4f7119
Javan Makhmali authored June 13, 2012

Showing 1 changed file with 11 additions and 11 deletions. Show diff stats Hide diff stats

  1. 22  README.md
22  README.md
Source Rendered
@@ -2,7 +2,7 @@ Whenever is a Ruby gem that provides a clear syntax for writing and deploying cr
2 2
 
3 3
 ### Installation
4 4
 
5  
-```sh  
  5
+```sh
6 6
 $ gem install whenever
7 7
 ```
8 8
 
@@ -11,7 +11,7 @@ Or with Bundler in your Gemfile.
11 11
 ```ruby
12 12
 gem 'whenever', :require => false
13 13
 ```
14  
- 
  14
+
15 15
 ### Getting started
16 16
 
17 17
 ```sh
@@ -23,14 +23,14 @@ This will create an initial `config/schedule.rb` file for you.
23 23
 
24 24
 ### Example schedule.rb file
25 25
 
26  
-```ruby  
  26
+```ruby
27 27
 every 3.hours do
28  
-  runner "MyModel.some_process"       
29  
-  rake "my:rake:task"                 
  28
+  runner "MyModel.some_process"
  29
+  rake "my:rake:task"
30 30
   command "/usr/bin/my_great_command"
31 31
 end
32 32
 
33  
-every 1.day, :at => '4:30 am' do 
  33
+every 1.day, :at => '4:30 am' do
34 34
   runner "MyModel.task_to_run_at_four_thirty_in_the_morning"
35 35
 end
36 36
 
@@ -38,7 +38,7 @@ every :hour do # Many shortcuts available: :hour, :day, :month, :year, :reboot
38 38
   runner "SomeModel.ladeeda"
39 39
 end
40 40
 
41  
-every :sunday, :at => '12pm' do # Use any day of the week or :weekend, :weekday 
  41
+every :sunday, :at => '12pm' do # Use any day of the week or :weekend, :weekday
42 42
   runner "Task.do_something_great"
43 43
 end
44 44
 
@@ -60,7 +60,7 @@ every 2.hours do
60 60
   awesome "party", :fun_level => "extreme"
61 61
 end
62 62
 ```
63  
-  
  63
+
64 64
 Would run `/usr/local/bin/awesome party extreme` every two hours. `:task` is always replaced with the first argument, and any additional `:whatevers` are replaced with the options passed in or by variables that have been defined with `set`.
65 65
 
66 66
 The default job types that ship with Whenever are defined like so:
@@ -83,7 +83,7 @@ You can change this by setting your own `:job_template`.
83 83
 ```ruby
84 84
 set :job_template, "bash -l -c ':job'"
85 85
 ```
86  
-  
  86
+
87 87
 Or set the job_template to nil to have your jobs execute normally.
88 88
 
89 89
 ```ruby
@@ -139,7 +139,7 @@ This tells rvm to trust all rvmrc files, which is documented here: http://waynee
139 139
 $ cd /apps/my-great-project
140 140
 $ whenever
141 141
 ```
142  
-  
  142
+
143 143
 This will simply show you your `schedule.rb` file converted to cron syntax. It does not read or write your crontab file. Run `whenever --help` for a complete list of options.
144 144
 
145 145
 ### Credit
@@ -159,7 +159,7 @@ It's a little bit dated now, but remains a good introduction.
159 159
 
160 160
 ----
161 161
 
162  
-Compatible with Ruby 1.8.7-1.9.2, JRuby, and Rubinius. [![Build Status](https://secure.travis-ci.org/javan/whenever.png)](http://travis-ci.org/javan/whenever)
  162
+Compatible with Ruby 1.8.7-1.9.3, JRuby, and Rubinius. [![Build Status](https://secure.travis-ci.org/javan/whenever.png)](http://travis-ci.org/javan/whenever)
163 163
 
164 164
 ----
165 165
 

0 notes on commit 28946b9

Please sign in to comment.
Something went wrong with that request. Please try again.