daemonite 0.3.0 → 0.4.0

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 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3693b02cb092a8df074a832d0e3d452ca256ac735f07b64edb230dab5c9bd2e
4
- data.tar.gz: 2ade323e0bcf2cdb07658d087b292c258dd627cbcf6362057acb6c0548bf1386
3
+ metadata.gz: 64b585a2bed60547754e07e67c77241e0b20b2971162bfe1316de38d814fea73
4
+ data.tar.gz: 33e365291dab615db89d5c4be32db9f331927e9f45b81a3f6271270250cd0fe0
5
5
  SHA512:
6
- metadata.gz: d037d2d8626b46fc92ee8029dc0d822e405032ccd998c0d42de444e0ae62ef1bd118b2dec931663a6395130ad1808bb81624d64862a776a209b3189158832a28
7
- data.tar.gz: fa584bc13539dc02410cec2b7b71ced225c3cad9db63e683497239f4e9906d18b40c713b03babe59eb5226b3402a03cc1de18f23081f125d9c583db58fcf17a7
6
+ metadata.gz: 69298c230e77baca6114a338cee0a06b9011ab215e031919e5b86096b1938fce33d418c0a8665c7c4f61cfc357168a5b3a13f60b91333e841c780f2544516802
7
+ data.tar.gz: 020b78be52e9239d098d83191170aa39dbb8947f57010cea14b64bea74ec774445798b21b63588f33e2fcde9d1c0424eb9adabfe2dad339fb4b0a1f94147010e
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "daemonite"
3
- s.version = "0.3.0"
3
+ s.version = "0.4.0"
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."
@@ -56,6 +56,11 @@ module Daemonism
56
56
  opt.on(*ro)
57
57
  end
58
58
  opt.on("--verbose", "-v", "Do not daemonize. Write ouput to console.") { opts[:verbose] = true }
59
+ opt.on("--config=FNAME", "-cFNAME", "Config file location.") { |f,a|
60
+ if File.exists?(opts[:basepath] + '/' + f)
61
+ opts.merge!(Psych::load_file(opts[:basepath] + '/' + f))
62
+ end
63
+ }
59
64
  opt.on("--help", "-h", "This text.") { puts opt; exit }
60
65
  opt.separator(opt.summary_indent + "start|stop|restart|info".ljust(opt.summary_width+1) + "Do operation start, stop, restart or get information.")
61
66
  opts[:runtime_cmds].each do |ro|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daemonite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-16 00:00:00.000000000 Z
11
+ date: 2018-09-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Daemonite - Process.daemon and argparse wrapper for loopies.
14
14
  email: juergen.mangler@gmail.com