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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ca8f0a63d98cd7d7906bfeeaa09e07b6bed50fb
4
- data.tar.gz: 434e5621f3c326590477872019732b7764711066
3
+ metadata.gz: 931dc084cdb764f90ba794f9fa85bafd59e0db06
4
+ data.tar.gz: 4ead2fb3fd2cef32609d95aa279ec868cf3d7de8
5
5
  SHA512:
6
- metadata.gz: 4cbb0f08ecbf361017d75838ba932a2f629fd58df6a7b00c7c0298a5a5e52e02d6e748df27153f2ec1237b6a61c7a061661b3c8b6097908b5afebbfdd2c8d0bc
7
- data.tar.gz: a56a8a2686e5b298ffab856847869f6504f07bc6a3e3c849581e3b11819a2cd1a91327984f8422fd367ea75b82b111e7e488f1e378eee80b08a33972278156d9
6
+ metadata.gz: 82cb716fb4d5ce352883cce6a08317be661c1cc48e549cd29009fd8e32487a5ab9d6334dcaa1bb986e427a5d6f094d19f5221d009aad58019e93deedc5cd9810
7
+ data.tar.gz: cb2cfd929fbe22bc74026dd7526f3df985192651d8be06e4bf27487e5a1e4deeefa487e48a0b87f191ca34bdd952b446e5793e802d7cdb9a20191ade06b84b21
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crono (1.0.0.pre2)
4
+ crono (1.0.0.pre3)
5
5
  activerecord (~> 4.0)
6
6
  activesupport (~> 4.0)
7
7
 
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 daemon
134
+ #### Run
135
135
 
136
- To run Crono daemon, in your Rails project root directory:
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
- --piddir PATH Path to piddir (Default: tmp/pids)
146
- -N, --process_name name Name of the process (Default: crono)
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 Application environment (Default: development)
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
 
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Crono
2
- VERSION = '1.0.0.pre2'
2
+ VERSION = '1.0.0.pre3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crono
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre2
4
+ version: 1.0.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dzmitry Plashchynski