kanamei-keystone 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ autoload :Moji , 'moji'
11
11
 
12
12
  module Keystone
13
13
 
14
- VERSION = '0.0.16'
14
+ VERSION = '0.0.17'
15
15
 
16
16
  autoload :StringUtil , 'keystone/string_util'
17
17
  autoload :Batch , 'keystone/batch'
@@ -81,7 +81,10 @@ module Keystone::Batch
81
81
  opts.banner = "Usage: script/runner #{script_name} [options]"
82
82
 
83
83
  debug "pg_path=#{pg_path}"
84
-
84
+
85
+ opts.on("-e", "--environment=name",
86
+ String,"specifies the environment for the runner to operate under (test/development/production).",
87
+ "default: development")
85
88
  else
86
89
  debug "caller=#{caller}"
87
90
  pg_path = if File.expand_path(caller[0]) =~ /(.*):\d*\z/
@@ -91,6 +94,8 @@ module Keystone::Batch
91
94
  end
92
95
  end
93
96
 
97
+ opts.on("-h","--help","show this help message.") { $stderr.puts opts; exit }
98
+
94
99
  pid_file = nil
95
100
  opts.on("--lockfile LOCK_FILE_PATH","set lock file path") do |v|
96
101
  double_process_check = true unless double_process_check
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kanamei-keystone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - kanamei