stacked_config 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stacked_config/layers/command_line_layer.rb +5 -1
- data/lib/stacked_config/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: ed3f29d3adfe8d46008bce31239f27dd32b45925
|
4
|
+
data.tar.gz: 6c71fdb5a24ca95eaf2796578f8a2675e19b848e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4211dee108d7e64c4549c53248a2e4e0620f69f41c038f7651b0a7db300efd6939b88f5a875009bf19dc019848945681f9c9c746e0957b9f017bdc15dbb7dac
|
7
|
+
data.tar.gz: a0c300993b2107e8cba6b58f2ee53c3c9f2a3ce5855a396bf6337e15eee4f29318f97d656f08ec95e805df9ed76090fad6a54e858ab98fb32b31616b8a695567
|
@@ -5,6 +5,8 @@ module StackedConfig
|
|
5
5
|
|
6
6
|
attr_reader :slop_definition
|
7
7
|
|
8
|
+
attr_accessor :extra_help
|
9
|
+
|
8
10
|
def initialize
|
9
11
|
@slop_definition = Slop.new
|
10
12
|
build_command_line_options
|
@@ -61,7 +63,9 @@ module StackedConfig
|
|
61
63
|
if manager.nil?
|
62
64
|
'No banner unless added to a manager !'
|
63
65
|
else
|
64
|
-
"\nUsage: #{manager.config_file_base_name} [options]\n#{manager.app_name} Version: #{manager.app_version}\n\n#{manager.app_description}"
|
66
|
+
header = "\nUsage: #{manager.config_file_base_name} [options]\n#{manager.app_name} Version: #{manager.app_version}\n\n#{manager.app_description}"
|
67
|
+
header += extra_help unless extra_help.nil? or extra_help == ''
|
68
|
+
header
|
65
69
|
end
|
66
70
|
end
|
67
71
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stacked_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurent B.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|