dapp 0.13.1 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed07e4ba41f680a79acc2f27a826dec12bf5ba77
4
- data.tar.gz: 981b7d0951b7361e9b20ab6469e7d797cabf0de3
3
+ metadata.gz: 953875fd2962ef0556c4e9024c80766b1f21b00a
4
+ data.tar.gz: dbd4be0b9029832784a411227a8ccb5825e73fe7
5
5
  SHA512:
6
- metadata.gz: 058341b114a2978ca617951f957500227ae76ef4f074c23f6a68e3c9845880ff9778dc435fdd7256fa0b8ba18893bc41748179573498f111869ffe9de8cb3517
7
- data.tar.gz: 2251d7ce20c67b6103821aa808da48fde2de2d8a850591155a4eff6bf19288f27bc39636f218d4a096a556b9dd33befd22c75239dbf79997dffffc20c6946507
6
+ metadata.gz: 638074e5ff306047fca2b4c6ac54f4db5039476f962407fc29e013cc88bd25bc1910ef365bc827a47ec4f8161c960ff3f0ef96e45cd557181c398908bfef0001
7
+ data.tar.gz: 851a3da2f34d463d16359151eaeebe5d469455fe6a2654119f370463670a0dfb7c9050ab99c1fe0cf7b6cce756cee57e692323828454830f97c62e73e1bb6387
@@ -33,11 +33,7 @@ module Dapp
33
33
  kube_flush_hooks_jobs(additional_values, set_options)
34
34
  kube_run_deploy(additional_values, set_options)
35
35
  ensure
36
- if dev_mode?
37
- log_info "Temporary chart directory: #{kube_tmp_chart_path}"
38
- else
39
- FileUtils.rm_rf(kube_tmp_chart_path)
40
- end
36
+ FileUtils.rm_rf(kube_tmp_chart_path)
41
37
  end
42
38
  end
43
39
 
@@ -77,7 +73,8 @@ module Dapp
77
73
  Dir.glob(kube_chart_secret_path.join('**/*')).each do |entry|
78
74
  next unless File.file?(entry)
79
75
  secret_relative_path = Pathname(entry).subpath_of(kube_chart_secret_path)
80
- IO.binwrite(kube_tmp_chart_secret_path(secret_relative_path), secret.extract(IO.binread(entry)))
76
+ secret_data = secret.extract(IO.binread(entry).chomp("\n"))
77
+ File.open(kube_tmp_chart_secret_path(secret_relative_path), 'wb:ASCII-8BIT', 0400) {|f| f.write secret_data}
81
78
  end
82
79
  end
83
80
 
@@ -176,7 +173,7 @@ module Dapp
176
173
  end
177
174
 
178
175
  def kube_tmp_chart_path(*path)
179
- @kube_tmp_path ||= Dir.mktmpdir('dapp-secret-', options[:tmp_dir_prefix] || '/tmp')
176
+ @kube_tmp_path ||= Dir.mktmpdir('dapp-helm-chart-', options[:tmp_dir_prefix] || '/tmp')
180
177
  make_path(@kube_tmp_path, *path).expand_path.tap { |p| p.parent.mkpath }
181
178
  end
182
179
 
@@ -12,7 +12,7 @@ module Dapp
12
12
  puts encrypted_data
13
13
  else
14
14
  FileUtils.mkpath File.dirname(output_file_path)
15
- IO.binwrite(output_file_path, encrypted_data)
15
+ IO.binwrite(output_file_path, "#{encrypted_data}\n")
16
16
  end
17
17
  end
18
18
  end
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = '0.13.1'.freeze
2
+ VERSION = '0.13.2'.freeze
3
3
  BUILD_CACHE_VERSION = 13
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Stolyarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-31 00:00:00.000000000 Z
11
+ date: 2017-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout