arethusa-cli 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arethusa/cli/version.rb +1 -1
- data/lib/arethusa/cli.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bff9923a0b9b37d48debe4faba03eaaf4cd7ae5
|
4
|
+
data.tar.gz: f14876b90a8da4488c861b17b6b29afda303a292
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67e3d4d601873cfdf82baa6e941564c7d5e96720f4c2c2a340a02c3b3ce739eedc9d38afa91684502302ad2fbc99723dfec7a158f0c9eba976e8a607cd34f84b
|
7
|
+
data.tar.gz: 8ac8ba526fd5a7684b569de2692ff75efd5b7f00ac88940538959482a33eeec333aa3d1417925e0d06a76793f27d5d416af1aa54093c8c9c6bf7cb22b51027ea
|
data/lib/arethusa/cli/version.rb
CHANGED
data/lib/arethusa/cli.rb
CHANGED
@@ -61,8 +61,11 @@ EOF
|
|
61
61
|
end
|
62
62
|
|
63
63
|
desc 'merge FILE', 'Merge Arethusa configuration files'
|
64
|
+
method_option :base_path, aliases: '-b',
|
65
|
+
desc: 'Base path to conf files to be included'
|
64
66
|
def merge(file)
|
65
67
|
@conf = read_conf(file)
|
68
|
+
@conf_dir = options[:base_path] || app_dir
|
66
69
|
traverse_and_include(@conf)
|
67
70
|
|
68
71
|
puts JSON.pretty_generate(@conf, indent: ' ')
|
@@ -146,7 +149,7 @@ EOF
|
|
146
149
|
end
|
147
150
|
|
148
151
|
def traverse_and_include(conf)
|
149
|
-
inside
|
152
|
+
inside @conf_dir do
|
150
153
|
traverse(conf)
|
151
154
|
end
|
152
155
|
end
|