config_layers 0.1.4 → 0.1.5

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: 35335c4358c12355a1622048a3863f0e049774ce
4
- data.tar.gz: 76cb6fee99b5c67d876778c686f7a88b98de8f62
3
+ metadata.gz: 364d951dd8dc3c6f7557c9a44e208d896d93c9eb
4
+ data.tar.gz: e8b76b78acd844fce6663a8788549b81da7c2375
5
5
  SHA512:
6
- metadata.gz: 97333f0c5d53337c8566268a3f361b7bed3cd9cb76bd05240175515c2ccb95235acd8d205e793468ef88682223b489333c76359a7713f8653946687ecab57326
7
- data.tar.gz: 00dd0251bf5c63de30df2fad4d5432dd1922be57399d2a57346f60c6f4ecf9c7db64c3e434fd5a818f4d8b628497a4a8b97c856e3b4f09e6769edc812dcdf14a
6
+ metadata.gz: 3f17cdc93399501294cc430acf13924d0afdd76227a41ea312d64f204624559e33fb2b72fb1fb89f9877dd0174d550c47734ce7091291ca74a7143a2c51d4e9c
7
+ data.tar.gz: e14c9db65a2655c9064fb9ba430818e9a028e7339fb49ca754d968fee0f8e3b28c111ba2c714aa6660b7e8d3cf30572f98bb6bf6a8ac367149cecdc81b450cd4
@@ -41,7 +41,7 @@ fi
41
41
  if [ "$http_proxy" = "" ]
42
42
  then
43
43
  echo "Currently, no proxy is set. Running docker without proxy"
44
- docker build $TAG
44
+ docker build $TAG .
45
45
  exit
46
46
  fi
47
47
 
@@ -1,5 +1,5 @@
1
1
  # Config Layers
2
2
  module ConfigLayers
3
- VERSION = '0.1.4'
4
- DATE = '2015-06-03'
3
+ VERSION = '0.1.5'
4
+ DATE = '2015-06-17'
5
5
  end
@@ -1228,6 +1228,33 @@ module PRC
1228
1228
  data
1229
1229
  end
1230
1230
 
1231
+ # Function to loop in existing data in a mere view of data.
1232
+ #
1233
+ # merge can return data only if at least one key value accross layers
1234
+ # are of type Hash or Array.
1235
+ # * *Args*
1236
+ # - +options+ : Hash of how to get the data
1237
+ # - +:name+ : layer to get data.
1238
+ # - +:index+ : layer index to get data.
1239
+ # If neither :name[s] or :index[es] is set, each will use all
1240
+ # layers
1241
+ # - +:data_opts+ : Array or Hash. Define data options per layer.
1242
+ #
1243
+ def each(options)
1244
+ parameters = _nameindex_common_options_get(options)
1245
+ return nil if parameters.nil?
1246
+
1247
+ config_layers, = parameters[0]
1248
+
1249
+ return nil unless block_given?
1250
+
1251
+ config_layers.each do |layer|
1252
+ layer[:config].data.each do |k, v|
1253
+ yield(k, v)
1254
+ end
1255
+ end
1256
+ end
1257
+
1231
1258
  include PRC::CoreConfigRubySpec::Public
1232
1259
 
1233
1260
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_layers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christophe Larsonneur
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-06-03 00:00:00.000000000 Z
11
+ date: 2015-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: subhash