bosh_cli 1.3215.0 → 1.3215.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cli.rb +1 -0
- data/lib/cli/commands/deployment_diff.rb +3 -0
- data/lib/cli/release_tarball.rb +2 -1
- data/lib/cli/sorted_release_archiver.rb +1 -12
- data/lib/cli/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1e8b8e5a9346950cf3091d9a741a5b74068a2d6
|
4
|
+
data.tar.gz: f11a927065dcd013da89fd9f83f5d774a1dbf694
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dae020c223686d089c0216689236755a48d7010bba3cff192175658d786662bb8f4e06f73a5d3e6c622136c0301a60c72e3401948b6592f9f9c2ed3cbb9e5a03
|
7
|
+
data.tar.gz: f6f04a1ab35b01bdfd941a2c61028425a4a65a44eae25ea561afecfccbf0d6813806a1e6febc609153181062e972a34d97558b50d0ceba9331c185371bc173ac
|
data/lib/cli.rb
CHANGED
@@ -10,6 +10,7 @@ module Bosh::Cli::Command
|
|
10
10
|
no_redact = options[:no_redact]
|
11
11
|
changes = @director.diff_deployment(@manifest.name, @manifest.yaml, no_redact)
|
12
12
|
diff = changes['diff']
|
13
|
+
error = changes['error']
|
13
14
|
|
14
15
|
header('Detecting deployment changes')
|
15
16
|
|
@@ -39,6 +40,8 @@ module Bosh::Cli::Command
|
|
39
40
|
end
|
40
41
|
end
|
41
42
|
|
43
|
+
say(error) if error
|
44
|
+
|
42
45
|
changes['context']
|
43
46
|
rescue Bosh::Cli::ResourceNotFound
|
44
47
|
inspect_deployment_changes(
|
data/lib/cli/release_tarball.rb
CHANGED
@@ -35,6 +35,7 @@ module Bosh::Cli
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def unpack_license
|
38
|
+
return false if manifest_yaml['license'].nil?
|
38
39
|
return @unpacked_license unless @unpacked_license.nil?
|
39
40
|
exit_success = safe_fast_unpack('./license.tgz')
|
40
41
|
@unpacked_license = !!exit_success
|
@@ -179,7 +180,7 @@ module Bosh::Cli
|
|
179
180
|
|
180
181
|
def upload_packages?(package_matches = [])
|
181
182
|
return true if package_matches.nil?
|
182
|
-
package_matches.size != manifest_yaml[@packages_folder].size
|
183
|
+
package_matches.uniq.size != manifest_yaml[@packages_folder].map { |p| p['version'] }.uniq.size
|
183
184
|
end
|
184
185
|
|
185
186
|
# Repacks tarball according to the structure of remote release
|
@@ -6,23 +6,12 @@ module Bosh::Cli
|
|
6
6
|
|
7
7
|
def archive(destination_file)
|
8
8
|
Dir.chdir(@dir) do
|
9
|
+
ordered_release_files = Bosh::Common::Release::ReleaseDirectory.new('.').ordered_release_files
|
9
10
|
success = Kernel.system('tar', '-C', @dir, '-pczf', destination_file, *ordered_release_files, out: '/dev/null', err: '/dev/null')
|
10
11
|
if !success
|
11
12
|
raise InvalidRelease, 'Cannot create release tarball'
|
12
13
|
end
|
13
14
|
end
|
14
15
|
end
|
15
|
-
|
16
|
-
private
|
17
|
-
|
18
|
-
def ordered_release_files
|
19
|
-
ordered_release_files = ['./release.MF']
|
20
|
-
license_files = (Dir.entries('.') & ['LICENSE', 'NOTICE']).sort
|
21
|
-
unless license_files.empty?
|
22
|
-
ordered_release_files += license_files.map { |filename| "./#{filename}" }
|
23
|
-
end
|
24
|
-
ordered_release_files += ['./jobs', './packages']
|
25
|
-
ordered_release_files
|
26
|
-
end
|
27
16
|
end
|
28
17
|
end
|
data/lib/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3215.0
|
4
|
+
version: 1.3215.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VMware
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bosh_common
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.3215.0
|
19
|
+
version: 1.3215.3.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.3215.0
|
26
|
+
version: 1.3215.3.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bosh-template
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.3215.0
|
33
|
+
version: 1.3215.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.3215.0
|
40
|
+
version: 1.3215.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cf-uaa-lib
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.3215.0
|
131
|
+
version: 1.3215.3.0
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.3215.0
|
138
|
+
version: 1.3215.3.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: net-ssh
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|