vara 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vara/log.rb +5 -1
- data/lib/vara/product_artifact_zipper.rb +10 -1
- data/lib/vara/product_metadata_processor.rb +3 -3
- data/lib/vara/tarball.rb +3 -5
- data/lib/vara/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e41d610b2187ae48c3fd50782d51cac3453588a0
|
4
|
+
data.tar.gz: 9c450bf99a4a73351c510ba95287abf7f6562b4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 255859e178c8e8ea85f902d80700072c8534584b8ff80bd062c2e21cc7b65c2e923b3ed07004f3bcb7040d3aaf0175ba044fc6a177d787b513498d020c528e63
|
7
|
+
data.tar.gz: 7b62a9c3dc6f952f0d6e3c41a5fd98bc1538fe4bbbc4798d9e0b4852000f423aa48f8cbcc962db1591a6fc45760ca64b9a5e000f5952c32c9d0c59266187ed31
|
data/lib/vara/log.rb
CHANGED
@@ -57,7 +57,16 @@ module Vara
|
|
57
57
|
end
|
58
58
|
|
59
59
|
FileUtils.mkdir('metadata')
|
60
|
-
|
60
|
+
metadata = YAML.load_file(product_contents.metadata_path)
|
61
|
+
|
62
|
+
metadata.fetch('releases').each do |r|
|
63
|
+
r.delete('aws')
|
64
|
+
end
|
65
|
+
|
66
|
+
File.write(
|
67
|
+
File.join('metadata', File.basename(product_contents.metadata_path)),
|
68
|
+
metadata.to_yaml
|
69
|
+
)
|
61
70
|
end
|
62
71
|
|
63
72
|
def copy_and_validate_releases(product_metadata)
|
@@ -31,9 +31,9 @@ module Vara
|
|
31
31
|
|
32
32
|
attr_reader :product_dir, :versioner, :external_release_paths
|
33
33
|
|
34
|
-
REQUIRED_RELEASE_KEYS = %w(file name md5 version)
|
35
|
-
EXCLUSIVE_KEYS = %w(url aws)
|
36
|
-
REQUIRED_AWS_KEYS = %w(access_key_id secret_access_key bucket_name region filename)
|
34
|
+
REQUIRED_RELEASE_KEYS = %w(file name md5 version).freeze
|
35
|
+
EXCLUSIVE_KEYS = %w(url aws).freeze
|
36
|
+
REQUIRED_AWS_KEYS = %w(access_key_id secret_access_key bucket_name region filename).freeze
|
37
37
|
|
38
38
|
def merged_metadata
|
39
39
|
binaries_path = File.join(product_dir, 'metadata_parts', 'binaries.yml')
|
data/lib/vara/tarball.rb
CHANGED
@@ -50,11 +50,9 @@ module Vara
|
|
50
50
|
stderr_string = stderr.read
|
51
51
|
end
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
fail "Invalid tarball: #{path_to_binary}. Tar command STDOUT: #{stdout_string}\n STDERR:#{stderr_string}"
|
57
|
-
end
|
53
|
+
fail "Invalid tarball: #{path_to_binary}. Tar command STDOUT: #{stdout_string}\n STDERR:#{stderr_string}" unless status.success?
|
54
|
+
|
55
|
+
log.info("Verified that #{path_to_binary} as a valid tar file")
|
58
56
|
end
|
59
57
|
|
60
58
|
def validate_checksum
|
data/lib/vara/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CF Release Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|