bosh_cli 1.3215.3.0 → 1.3215.4.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 +0 -1
- data/lib/cli/commands/deployment_diff.rb +0 -3
- data/lib/cli/release_tarball.rb +1 -2
- data/lib/cli/sorted_release_archiver.rb +12 -1
- 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: b3b79ac5a8377c99cad46de0f2f788e3859310d4
|
4
|
+
data.tar.gz: b8f9b134f53385092d33cf8c2a5ae09ed786ea78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dcc139f7050d386586bf31b9a768f30339deb6da2fd115b692a0477ef0ce1c9bbe2c7931e8fe8abbea010b46416bf7b7f750d633d71dad2f5fa9bef064bf11e
|
7
|
+
data.tar.gz: 3322806005d9b5560c50cb3d9fe1c5604016f061b5cbf9a3738e140ed36e44f9e9709374ac9560d8ab8fb87cd5c9b657de628821743da02619f94cc9bc461aa9
|
data/lib/cli.rb
CHANGED
@@ -10,7 +10,6 @@ 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']
|
14
13
|
|
15
14
|
header('Detecting deployment changes')
|
16
15
|
|
@@ -40,8 +39,6 @@ module Bosh::Cli::Command
|
|
40
39
|
end
|
41
40
|
end
|
42
41
|
|
43
|
-
say(error) if error
|
44
|
-
|
45
42
|
changes['context']
|
46
43
|
rescue Bosh::Cli::ResourceNotFound
|
47
44
|
inspect_deployment_changes(
|
data/lib/cli/release_tarball.rb
CHANGED
@@ -35,7 +35,6 @@ module Bosh::Cli
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def unpack_license
|
38
|
-
return false if manifest_yaml['license'].nil?
|
39
38
|
return @unpacked_license unless @unpacked_license.nil?
|
40
39
|
exit_success = safe_fast_unpack('./license.tgz')
|
41
40
|
@unpacked_license = !!exit_success
|
@@ -180,7 +179,7 @@ module Bosh::Cli
|
|
180
179
|
|
181
180
|
def upload_packages?(package_matches = [])
|
182
181
|
return true if package_matches.nil?
|
183
|
-
package_matches.
|
182
|
+
package_matches.size != manifest_yaml[@packages_folder].size
|
184
183
|
end
|
185
184
|
|
186
185
|
# Repacks tarball according to the structure of remote release
|
@@ -6,12 +6,23 @@ 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
|
10
9
|
success = Kernel.system('tar', '-C', @dir, '-pczf', destination_file, *ordered_release_files, out: '/dev/null', err: '/dev/null')
|
11
10
|
if !success
|
12
11
|
raise InvalidRelease, 'Cannot create release tarball'
|
13
12
|
end
|
14
13
|
end
|
15
14
|
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
|
16
27
|
end
|
17
28
|
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.
|
4
|
+
version: 1.3215.4.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-04-
|
11
|
+
date: 2016-04-14 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.
|
19
|
+
version: 1.3215.4.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.
|
26
|
+
version: 1.3215.4.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.
|
33
|
+
version: 1.3215.4.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.
|
40
|
+
version: 1.3215.4.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.
|
131
|
+
version: 1.3215.4.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.
|
138
|
+
version: 1.3215.4.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: net-ssh
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|