wonko9-i_can_daemonize 0.6.0 → 0.7.0
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/VERSION.yml +1 -1
- data/lib/i_can_daemonize.rb +3 -3
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/i_can_daemonize.rb
CHANGED
@@ -167,7 +167,7 @@ module ICanDaemonize
|
|
167
167
|
return unless ok_to_start?
|
168
168
|
|
169
169
|
options.merge!(opts)
|
170
|
-
puts "Starting #{instances_to_start} #{script_name} #{
|
170
|
+
puts "Starting #{instances_to_start} #{script_name} #{pluralize('instance', instances_to_start)}..."
|
171
171
|
puts "Logging to: #{log_file}" unless ontop?
|
172
172
|
|
173
173
|
unless ontop?
|
@@ -293,7 +293,7 @@ module ICanDaemonize
|
|
293
293
|
# stop the daemon, nicely at first, and then forcefully if necessary
|
294
294
|
def stop_daemons
|
295
295
|
self.running = false
|
296
|
-
puts "Stopping #{instances} #{script_name} #{
|
296
|
+
puts "Stopping #{instances} #{script_name} #{pluralize('instance', instances)}..."
|
297
297
|
if pids.empty?
|
298
298
|
$stderr.puts "#{script_name} doesn't appear to be running"
|
299
299
|
exit
|
@@ -421,7 +421,7 @@ module ICanDaemonize
|
|
421
421
|
@instances ||= 1
|
422
422
|
end
|
423
423
|
|
424
|
-
def
|
424
|
+
def pluralize(name, num)
|
425
425
|
num == 1 ? name : "#{name}s"
|
426
426
|
end
|
427
427
|
|