opener-daemons 0.6.0 → 0.6.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 +8 -8
- data/lib/opener/daemons/controller.rb +7 -5
- data/lib/opener/daemons/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzdjNjJkNjgwNGM3YjY5ZTE0Nzg2ZTk1ZWRlNjBiZjk0MjgxOGQ2OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjAxZTY5NzAwN2IyYjc3ZTAxZWIxYmEyM2NiZGY1MmJlNmEyMDJhOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWYwYjA5NWZiZjI0ZmM2NTIwYWYzZjc2M2RiNjJiNTYyYWI2ZDY2MWFhNDgz
|
10
|
+
OTU1MjRiYWY3MTk3ZDZiMjg3YWJhYzk1NWJmZDZhNmY0MjU5ZDdlNDQ0Nzky
|
11
|
+
NDk2NDUxYTRjMWFmNGE4ODAwNGI4ZmQ1Njk1NWZhMjhiZTUxODI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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]
|