daemonite 0.5.1 → 0.5.2

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 +6 -6
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d55c871c9a80cfec8102f511e3bcfd61d608c7a2a0c79088659a4f81d860bb7b
4
- data.tar.gz: bc92c0e6021fe788a5a91a429ef8ed8043a1dfd5d8d011b9db3521787d34b448
3
+ metadata.gz: '09519e4d9603836ae7592a8eec1dc4adb05d1b0e0f9ef272cabc8031465dd5d5'
4
+ data.tar.gz: 36b52b06a8ef226e9a3a31da22c3ccaff5f952d0622b5a3774187bff6f45721b
5
5
  SHA512:
6
- metadata.gz: 3eb8cd83899d1d214bbba728ae57b203e1ce58bbe41afd444c31cee1645da9b98e12140f7cd2abe89f45951515ec82b00340c4cd09449f469a0aa268f4c23aa1
7
- data.tar.gz: cd5d916982e0b10648869292a5f8c73f4b8f6e0eab8553e4dc6df3d79828742a69e291ed89bea4e07d1d448d55d3b0a0b15f5cd86a7cd42134b2d11b03a95552
6
+ metadata.gz: 6d88c1f1283ae40234daaf2fd47af083325836cd8a852ed2284946b19dc115998289be44f2a642da2b69f0727c3efe20f98970f4063d626a5ff06c40f1d74fd8
7
+ data.tar.gz: 478ff16c0a73a6fa855da7a47fe28065b6cd805cb7ee60189d7db6b8d233332137a6aef3e5c5a9eb59ff567eccb10e7b1d38dc6b6d54a0796bf1bf21a3480cbd
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "daemonite"
3
- s.version = "0.5.1"
3
+ s.version = "0.5.2"
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; ::Kernel::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])
@@ -76,7 +76,7 @@ module Daemonism
76
76
 
77
77
  unless (%w{start stop restart} + opts[:runtime_cmds].map{|ro| ro[0] }).include?(ARGV[0])
78
78
  puts ARGV.options
79
- exit!
79
+ ::Kernel::exit
80
80
  end
81
81
  opts[:cmdl_operation] = ARGV[0]
82
82
  end
@@ -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
+ ::Kernel::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
+ ::Kernel::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
+ ::Kernel::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
+ ::Kernel::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.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler