crono 1.0.0.pre2 → 1.0.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +21 -6
- data/lib/crono/cli.rb +2 -2
- data/lib/crono/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 931dc084cdb764f90ba794f9fa85bafd59e0db06
|
4
|
+
data.tar.gz: 4ead2fb3fd2cef32609d95aa279ec868cf3d7de8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82cb716fb4d5ce352883cce6a08317be661c1cc48e549cd29009fd8e32487a5ab9d6334dcaa1bb986e427a5d6f094d19f5221d009aad58019e93deedc5cd9810
|
7
|
+
data.tar.gz: cb2cfd929fbe22bc74026dd7526f3df985192651d8be06e4bf27487e5a1e4deeefa487e48a0b87f191ca34bdd952b446e5793e802d7cdb9a20191ade06b84b21
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -131,23 +131,38 @@ serialized using JSON.generate
|
|
131
131
|
Crono.perform(TestJob, 'some', 'args').every 1.day, at: {hour: 12, min: 15}
|
132
132
|
```
|
133
133
|
|
134
|
-
#### Run
|
134
|
+
#### Run
|
135
135
|
|
136
|
-
To run Crono
|
136
|
+
To run Crono, in your Rails project root directory:
|
137
137
|
|
138
138
|
bundle exec crono RAILS_ENV=development
|
139
139
|
|
140
140
|
crono usage:
|
141
141
|
```
|
142
|
-
Usage: crono [options] start|stop|restart|run
|
142
|
+
Usage: crono [options] [start|stop|restart|run]
|
143
143
|
-C, --cronotab PATH Path to cronotab file (Default: config/cronotab.rb)
|
144
144
|
-L, --logfile PATH Path to writable logfile (Default: log/crono.log)
|
145
|
-
|
146
|
-
-
|
145
|
+
-P, --pidfile PATH Deprecated! use --piddir with --process_name; Path to pidfile (Default: )
|
146
|
+
-D, --piddir PATH Path to piddir (Default: tmp/pids)
|
147
|
+
-N, --process_name NAME Name of the process (Default: crono)
|
148
|
+
-d, --[no-]daemonize Deprecated! Instead use crono [start|stop|restart] without this option; Daemonize process (Default: false)
|
147
149
|
-m, --monitor Start monitor process for a deamon (Default false)
|
148
|
-
-e, --environment ENV
|
150
|
+
-e, --environment ENV Application environment (Default: development)
|
149
151
|
```
|
150
152
|
|
153
|
+
#### Run as daemon
|
154
|
+
|
155
|
+
To run Crono as daemon, please add to your Gemfile:
|
156
|
+
|
157
|
+
```ruby
|
158
|
+
gem 'daemons'
|
159
|
+
```
|
160
|
+
|
161
|
+
Then:
|
162
|
+
|
163
|
+
bundle install; bundle exec crono start RAILS_ENV=development
|
164
|
+
|
165
|
+
There are "start", "stop", and "restart" commands.
|
151
166
|
|
152
167
|
## Web UI
|
153
168
|
|
data/lib/crono/cli.rb
CHANGED
@@ -122,7 +122,7 @@ module Crono
|
|
122
122
|
|
123
123
|
def parse_options(argv)
|
124
124
|
@argv = OptionParser.new do |opts|
|
125
|
-
opts.banner = "Usage: crono [options] start|stop|restart|run"
|
125
|
+
opts.banner = "Usage: crono [options] [start|stop|restart|run]"
|
126
126
|
|
127
127
|
opts.on("-C", "--cronotab PATH", "Path to cronotab file (Default: #{config.cronotab})") do |cronotab|
|
128
128
|
config.cronotab = cronotab
|
@@ -136,7 +136,7 @@ module Crono
|
|
136
136
|
config.pidfile = pidfile
|
137
137
|
end
|
138
138
|
|
139
|
-
opts.on("--piddir PATH", "Path to piddir (Default: #{config.piddir})") do |piddir|
|
139
|
+
opts.on("-D", "--piddir PATH", "Path to piddir (Default: #{config.piddir})") do |piddir|
|
140
140
|
config.piddir = piddir
|
141
141
|
end
|
142
142
|
|
data/lib/crono/version.rb
CHANGED