8000 Added an example for using chruby in a crontab. · devandroid/chruby@4009473 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4009473

Browse files
committed
Added an example for using chruby in a crontab.
1 parent e78153b commit 4009473

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ Switch to an arbitrary Ruby on the fly:
163163

164164
$ chruby_use /path/to/ruby
165165

166+
### Cron
167+
168+
Select a Ruby within a cron job:
169+
170+
30 18 * * * bash -c "chruby 1.9.3 && /path/to/script"
171+
166172
## Alternatives
167173

168174
* [RVM]

0 commit comments

Comments
 (0)
0