opener-daemons 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWIyYmNmYWY3MzVjMmYzNzAwYzIzMTk4ZDlhMzAwYThhMjE4ZTdlNw==
4
+ YzdjNjJkNjgwNGM3YjY5ZTE0Nzg2ZTk1ZWRlNjBiZjk0MjgxOGQ2OQ==
5
5
  data.tar.gz: !binary |-
6
- MzMzNDQwOTg0OTgwYWVkZjMxNGI2ODU4MWE1YmYxZDUxMjQyY2Q5Ng==
6
+ ZjAxZTY5NzAwN2IyYjc3ZTAxZWIxYmEyM2NiZGY1MmJlNmEyMDJhOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzdkZDFmNTZmZTYzZmQ1ZTMzODNkMmY0YWQ5MTFmYTg1ZDM1MGE1Y2QxMzc2
10
- YzdkMDczNjk1NTc3NjVmNzc2OTEzYzBkOWJmMzg4MjA4N2NlNjc5ZDIzNDAx
11
- OGFhN2E2ZGM0N2JjZjA0ZmNhOTNjMDU4OWQ3MjMyNWMzMGZjMmY=
9
+ MWYwYjA5NWZiZjI0ZmM2NTIwYWYzZjc2M2RiNjJiNTYyYWI2ZDY2MWFhNDgz
10
+ OTU1MjRiYWY3MTk3ZDZiMjg3YWJhYzk1NWJmZDZhNmY0MjU5ZDdlNDQ0Nzky
11
+ NDk2NDUxYTRjMWFmNGE4ODAwNGI4ZmQ1Njk1NWZhMjhiZTUxODI=
12
12
  data.tar.gz: !binary |-
13
- YjBhYzJjZTAwOTZkNjg3MTQ3MjRmZDU0YjFjYzY2ZjlmYjE5N2MzMWRiYTUz
14
- OGRjZjE5MGFlN2QwNzNlMGRlYmRhNzViZWUzMDNlZmZhYjA2NWE1YmY3OTdi
15
- NWRmYTFhZWY5ZDhkYjNmYTAwYmI1NzY3MjI5MjQ1Nzk1YWQyYmQ=
13
+ YTEzODNiYTBmOGMyZWZiOTdhYjdjNTk0MGMwNTNjMjQyZTQyMjM2NTU3MjIw
14
+ MjBjNjNkODQ0NTI5MWM4NTkxZDA0MTQ1NmY4NzNmYzAwZjJhNjM2ZmVjYTZk
15
+ NGJmYjNlZjBhMzcyNDlhOTFjNjE1NWVkNGRlMTg3MGU0NTgwMzA=
@@ -29,9 +29,6 @@ module Opener
29
29
  end
30
30
 
31
31
  def read_commandline
32
- args = ARGV.dup
33
- @options = Opener::Daemons::OptParser.parse!(args)
34
-
35
32
  if ARGV[0] == 'start'
36
33
  start
37
34
  elsif ARGV[0] == 'stop'
@@ -39,13 +36,18 @@ module Opener
39
36
  elsif ARGV[0] == 'restart'
40
37
  stop
41
38
  start
42
- elsif ARGV[0] == '-h'
43
- Opener::Daemons::OptParser.parse!(ARGV)
44
39
  else
45
40
  start_foreground
46
41
  end
47
42
  end
48
43
 
44
+ def options
45
+ return @options if @options
46
+ args = ARGV.dup
47
+ @options = Opener::Daemons::OptParser.parse!(args)
48
+ end
49
+
50
+
49
51
  def pid_path
50
52
  return @pid_path unless @pid_path.nil?
51
53
  @pid_path = if @options[:pid]
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  module Daemons
3
- VERSION = "0.6.0"
3
+ VERSION = "0.6.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-daemons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilco van Duinkerken