opener-daemons 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opener/daemons/controller.rb +6 -4
- data/lib/opener/daemons/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d6a101eee717c0742e8c914fd8e3b5e160636fa
|
4
|
+
data.tar.gz: 92c12168947b878ee6d4f28076566b445f66b0f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e3a50e24a3cc418d93d6f26b73f30609e8abc2f4e130dce5e1750fc4eed36ca62a1388b0efce821f5e7eaff5f1aa7735d9c6f8dee7dcde653d655a1af2c53f5
|
7
|
+
data.tar.gz: ae53c9cbca532cb6f658b6ad5f5bd20facfdb8dda0884b4b437260d8b4adc7cbc87151a69a7fd1d0d56d56078b9fff627998bfdbbc722a1dc3e9685e96a93937
|
@@ -11,8 +11,11 @@ module Opener
|
|
11
11
|
# The path to the script to daemonize.
|
12
12
|
# @return [String]
|
13
13
|
#
|
14
|
+
# @!attribute [r] parser
|
15
|
+
# @return [Opener::Daemons::OptionParser]
|
16
|
+
#
|
14
17
|
class Controller
|
15
|
-
attr_reader :name, :exec_path
|
18
|
+
attr_reader :name, :exec_path, :parser
|
16
19
|
|
17
20
|
##
|
18
21
|
# @param [Hash] options
|
@@ -23,6 +26,7 @@ module Opener
|
|
23
26
|
def initialize(options = {})
|
24
27
|
@name = options.fetch(:name)
|
25
28
|
@exec_path = options.fetch(:exec_path)
|
29
|
+
@parser = configure_slop
|
26
30
|
end
|
27
31
|
|
28
32
|
##
|
@@ -31,9 +35,7 @@ module Opener
|
|
31
35
|
# @param [Array] argv CLI arguments to parse.
|
32
36
|
#
|
33
37
|
def run(argv = ARGV)
|
34
|
-
|
35
|
-
|
36
|
-
slop.parse(argv)
|
38
|
+
parser.parse(argv)
|
37
39
|
end
|
38
40
|
|
39
41
|
##
|
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: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wilco van Duinkerken
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|