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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b735bf7aefc0ca1766255d81d62e597462da367c
4
- data.tar.gz: 8d724df16b36cf5d5b9368eec4c49b467b793607
3
+ metadata.gz: 8d6a101eee717c0742e8c914fd8e3b5e160636fa
4
+ data.tar.gz: 92c12168947b878ee6d4f28076566b445f66b0f7
5
5
  SHA512:
6
- metadata.gz: 8eb26750e9635ea9a32588266ea628666f09499169031a0753624ea17a9bd5c2410f4e39c88583c40ed6e3a7dfaaa31338e50c063cb3c8f5dc8c3e6c2d5daaa6
7
- data.tar.gz: 67e25b0fd92b99955afeebfe83fe523f2a0301441da1358df04477d3b87ccda15a34c2c167206b010d66bf7bafc22f04243af6ad22407950081f67139d4e7339
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
- slop = configure_slop
35
-
36
- slop.parse(argv)
38
+ parser.parse(argv)
37
39
  end
38
40
 
39
41
  ##
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  module Daemons
3
- VERSION = '2.1.1'
3
+ VERSION = '2.2.0'
4
4
  end # Daemons
5
5
  end # Opener
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.1.1
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-21 00:00:00.000000000 Z
12
+ date: 2014-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk