arethusa-cli 0.0.10 → 0.0.11
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 +7 -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: 40f54d9e4af8ba8e84379fc0b26cda9dbea1bc3e
|
4
|
+
data.tar.gz: 43f5f3c8d0a9e3d184db0309063ef8e705639522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50b7b045aaf006b777f537ad7d16c18ece1b72bbf84243235f832b90c4da7f8ecc026714c42261ab90c8cca4258df852a49f8205ba0143414a1bfc978b7b2cd2
|
7
|
+
data.tar.gz: 6fed28da14039ae084c409a9a3338d3bcd7485eeec6a0b3ebc6e1f307527afca200acb07a50564615ced8706c4fe3de2260b2e2238336efced78a21f75669a57
|
data/lib/arethusa/cli/version.rb
CHANGED
data/lib/arethusa/cli.rb
CHANGED
@@ -63,12 +63,18 @@ EOF
|
|
63
63
|
desc 'merge FILE', 'Merge Arethusa configuration files'
|
64
64
|
method_option :base_path, aliases: '-b',
|
65
65
|
desc: 'Base path to conf files to be included'
|
66
|
+
method_option :minify, aliases: '-m',
|
67
|
+
desc: 'Print the resulting JSON minified'
|
66
68
|
def merge(file)
|
67
69
|
@conf = read_conf(file)
|
68
70
|
@conf_dir = options[:base_path] || app_dir
|
69
71
|
traverse_and_include(@conf)
|
70
72
|
|
71
|
-
|
73
|
+
if options[:minify]
|
74
|
+
puts @conf.to_json
|
75
|
+
else
|
76
|
+
puts JSON.pretty_generate(@conf, indent: ' ')
|
77
|
+
end
|
72
78
|
end
|
73
79
|
|
74
80
|
no_commands do
|