daemonite 0.5.0 → 0.5.1
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.
- checksums.yaml +4 -4
- data/daemonite.gemspec +1 -1
- data/lib/daemonite.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d55c871c9a80cfec8102f511e3bcfd61d608c7a2a0c79088659a4f81d860bb7b
|
4
|
+
data.tar.gz: bc92c0e6021fe788a5a91a429ef8ed8043a1dfd5d8d011b9db3521787d34b448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb8cd83899d1d214bbba728ae57b203e1ce58bbe41afd444c31cee1645da9b98e12140f7cd2abe89f45951515ec82b00340c4cd09449f469a0aa268f4c23aa1
|
7
|
+
data.tar.gz: cd5d916982e0b10648869292a5f8c73f4b8f6e0eab8553e4dc6df3d79828742a69e291ed89bea4e07d1d448d55d3b0a0b15f5cd86a7cd42134b2d11b03a95552
|
data/daemonite.gemspec
CHANGED
data/lib/daemonite.rb
CHANGED
@@ -66,7 +66,7 @@ module Daemonism
|
|
66
66
|
opts.merge!(Psych::load_file(opts[:basepath] + '/' + f))
|
67
67
|
end
|
68
68
|
}
|
69
|
-
opt.on("--help", "-h", "This text.") { puts opt; exit }
|
69
|
+
opt.on("--help", "-h", "This text.") { puts opt; exit! }
|
70
70
|
opt.separator(opt.summary_indent + "start|stop|restart|info".ljust(opt.summary_width+1) + "Do operation start, stop, restart or get information.")
|
71
71
|
opts[:runtime_cmds].each do |ro|
|
72
72
|
opt.separator(opt.summary_indent + ro[0].ljust(opt.summary_width+1) + ro[1])
|
@@ -98,7 +98,7 @@ module Daemonism
|
|
98
98
|
unless @@daemonism_restart
|
99
99
|
if opts[:cmdl_operation] == "info" && status.call == false
|
100
100
|
puts "Server #{opts[:cmdl_info].nil? ? '' : '(' + opts[:cmdl_info].to_s + ') '}not running"
|
101
|
-
exit
|
101
|
+
exit!
|
102
102
|
end
|
103
103
|
if opts[:cmdl_operation] == "info" && status.call == true
|
104
104
|
puts "Server #{opts[:cmdl_info].nil? ? '' : '(' + opts[:cmdl_info].to_s + ') '}running as #{pid}"
|
@@ -110,11 +110,11 @@ module Daemonism
|
|
110
110
|
puts "CPU Time: #{stats.last}"
|
111
111
|
rescue
|
112
112
|
end
|
113
|
-
exit
|
113
|
+
exit!
|
114
114
|
end
|
115
115
|
if %w{start}.include?(opts[:cmdl_operation]) && status.call == true
|
116
116
|
puts "Server #{opts[:cmdl_info].nil? ? '' : '(' + opts[:cmdl_info].to_s + ') '}already started"
|
117
|
-
exit
|
117
|
+
exit!
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
@@ -133,7 +133,7 @@ module Daemonism
|
|
133
133
|
sleep 0.3
|
134
134
|
end
|
135
135
|
end
|
136
|
-
exit unless opts[:cmdl_operation] == "restart"
|
136
|
+
exit! unless opts[:cmdl_operation] == "restart"
|
137
137
|
end
|
138
138
|
end
|
139
139
|
|