kanamei-keystone 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/keystone.rb +1 -1
- data/lib/keystone/batch/base.rb +6 -1
- metadata +1 -1
data/lib/keystone.rb
CHANGED
data/lib/keystone/batch/base.rb
CHANGED
|
@@ -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
|