aggkit 0.4.6.12970 → 0.4.6.12973

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/bin/aggmerge +12 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1998fd78e7a23c09a5db72ab77f85431a33279b3e54b89b1c41d03a9f7acf8f0
4
- data.tar.gz: ede6e4a8a0dff48b97590162ef72490722cc680970b52c6621cc50778a441cc8
3
+ metadata.gz: 1603fcf7f952e916447928bbadde7edd5f7ea2c9ea0d8dd0afc20d1580c1aca5
4
+ data.tar.gz: 1287785c09e10e7dc62387d767b3515d5f59abe7d712eb40d12708bc45cf349d
5
5
  SHA512:
6
- metadata.gz: ab671b4bfdf9b412193481f9fc9e8f9c749a20210dc058ae966987c9b335a07f519c559a16b5d0d54465443fea46300176fc6f410e3d7ed73acf8d3a51c283e2
7
- data.tar.gz: d243413aa34bce31361fb91d74fc5c3c9e5ea3b212c92414f53c379c5a20796173ef631e3912de3739c705194cd6487e5ed88b3a227c98086c55abaeb5a1ce9a
6
+ metadata.gz: 60055810831e750b50266424bb311f70ba9dd6c6919fb6b4a4719947b2f43aa21564ef5979ab7b9469a455e3fce1a5972f5fb751dc25c46de56319b47f208e47
7
+ data.tar.gz: bb9be9c7854e16f6bff84dd7c94d28994163501e9c7b40ca0e4a3dfde7b976f1c6680855ea7159d7b858cb8f66417e15d9a84b87e4b5b26f4f632d3d8f486946
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aggkit (0.4.6.12970)
4
+ aggkit (0.4.6.12973)
5
5
  diplomat
6
6
  dotenv
7
7
  json
data/bin/aggmerge CHANGED
@@ -3,6 +3,12 @@
3
3
  require 'English'
4
4
  require 'yaml'
5
5
 
6
+ $aggdebug = ENV['AGGDEBUG']
7
+
8
+ def log(msg)
9
+ STDERR.puts "Debug: #{msg}" if $aggdebug
10
+ end
11
+
6
12
  if File.basename($PROGRAM_NAME) == File.basename(__FILE__)
7
13
  unless ENV['COMPOSE_FILE']
8
14
  STDERR.puts 'COMPOSE_FILE environment must point to one or more files'
@@ -109,6 +115,9 @@ def process_compose_hash(yml, dirname, parent = {})
109
115
  file
110
116
  end
111
117
 
118
+ log("SubPwd: #{Dir.pwd}")
119
+ log("SubFile: #{file_to_load}")
120
+ log("SubDir: #{File.dirname(file_to_load)}")
112
121
  tmp = process_compose_hash(YAML.load(File.read(file_to_load)), File.dirname(file_to_load), service)
113
122
 
114
123
  begin
@@ -145,8 +154,11 @@ def remove_build_section(hash)
145
154
  end
146
155
 
147
156
  if File.basename($PROGRAM_NAME) == File.basename(__FILE__)
157
+ log("Pwd: #{Dir.pwd}")
148
158
  # version в базовом хэше для того чтобы первым попасть в итоговый файл.
149
159
  result = ENV['COMPOSE_FILE'].split(':').reduce('version' => nil) do |parent, file|
160
+ log("File: #{file}")
161
+ log("Dir: #{File.dirname(file)}")
150
162
  yml = process_compose_hash(YAML.load(File.read(file)), File.dirname(file), parent)
151
163
  if yml['version'] && parent['version'] && yml['version'] != parent['version']
152
164
  raise "version mismatch: #{file}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aggkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6.12970
4
+ version: 0.4.6.12973
5
5
  platform: ruby
6
6
  authors:
7
7
  - Godko Ivan