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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ac1bc40b8ef2ef392ada7d3fe4a674e2d568581
4
- data.tar.gz: 9c7917a91dd38ca053b7fd5923f78c6e6abf971f
3
+ metadata.gz: 6bff9923a0b9b37d48debe4faba03eaaf4cd7ae5
4
+ data.tar.gz: f14876b90a8da4488c861b17b6b29afda303a292
5
5
  SHA512:
6
- metadata.gz: e78620b35260072614306ad5e1bef3b203e317b5bdd005bd9ac812ef665b2a975c58ac5808ee4f3b61826b8f542eac1ccccf6c7141ed8ef09673b7be28e53b75
7
- data.tar.gz: dfa9d3b5fd584b6072cd5f319d53541d7222e4fb0009250d0d2b2ed30858e3de4ba3ae73d00b493545e0c3d9c351ac0d06715493c6358982069d4f19681e3c5d
6
+ metadata.gz: 67e3d4d601873cfdf82baa6e941564c7d5e96720f4c2c2a340a02c3b3ce739eedc9d38afa91684502302ad2fbc99723dfec7a158f0c9eba976e8a607cd34f84b
7
+ data.tar.gz: 8ac8ba526fd5a7684b569de2692ff75efd5b7f00ac88940538959482a33eeec333aa3d1417925e0d06a76793f27d5d416af1aa54093c8c9c6bf7cb22b51027ea
@@ -1,5 +1,5 @@
1
1
  module Arethusa
2
2
  class CLI
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
4
4
  end
5
5
  end
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 app_dir do
152
+ inside @conf_dir do
150
153
  traverse(conf)
151
154
  end
152
155
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arethusa-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - LFDM