daemonite 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/daemonite.gemspec +1 -1
  3. data/lib/daemonite.rb +5 -5
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2aefaeee8ed856d896cb663cc2c2d8666f437e948e172d3d4f3bb8f8ac2bad5
4
- data.tar.gz: 18face311c11441c3baa56eb74586bd13a2dc2fce37efd4475b4963121ae8b2f
3
+ metadata.gz: d55c871c9a80cfec8102f511e3bcfd61d608c7a2a0c79088659a4f81d860bb7b
4
+ data.tar.gz: bc92c0e6021fe788a5a91a429ef8ed8043a1dfd5d8d011b9db3521787d34b448
5
5
  SHA512:
6
- metadata.gz: 481799bb690fec6d0090db1ff7e762ebf00ea65248c9b5a21311058b49b5661eb141c5f6dd930850c8e53d8f3809f668aedbe585702f337d8674061fef6fb009
7
- data.tar.gz: 015b1b64ebe9e4f954275c8e526c9f5de27a1ee52d5c5b965d0284e7bff355a342db2d2dfda9af62070aff3cbec23444efb42ec3771cc8083f9547a36ac8ee57
6
+ metadata.gz: 3eb8cd83899d1d214bbba728ae57b203e1ce58bbe41afd444c31cee1645da9b98e12140f7cd2abe89f45951515ec82b00340c4cd09449f469a0aa268f4c23aa1
7
+ data.tar.gz: cd5d916982e0b10648869292a5f8c73f4b8f6e0eab8553e4dc6df3d79828742a69e291ed89bea4e07d1d448d55d3b0a0b15f5cd86a7cd42134b2d11b03a95552
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "daemonite"
3
- s.version = "0.5.0"
3
+ s.version = "0.5.1"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Daemonite - Process.daemon and argparse wrapper for loopies."
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daemonite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler