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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1e8b8e5a9346950cf3091d9a741a5b74068a2d6
4
- data.tar.gz: f11a927065dcd013da89fd9f83f5d774a1dbf694
3
+ metadata.gz: b3b79ac5a8377c99cad46de0f2f788e3859310d4
4
+ data.tar.gz: b8f9b134f53385092d33cf8c2a5ae09ed786ea78
5
5
  SHA512:
6
- metadata.gz: dae020c223686d089c0216689236755a48d7010bba3cff192175658d786662bb8f4e06f73a5d3e6c622136c0301a60c72e3401948b6592f9f9c2ed3cbb9e5a03
7
- data.tar.gz: f6f04a1ab35b01bdfd941a2c61028425a4a65a44eae25ea561afecfccbf0d6813806a1e6febc609153181062e972a34d97558b50d0ceba9331c185371bc173ac
6
+ metadata.gz: 8dcc139f7050d386586bf31b9a768f30339deb6da2fd115b692a0477ef0ce1c9bbe2c7931e8fe8abbea010b46416bf7b7f750d633d71dad2f5fa9bef064bf11e
7
+ data.tar.gz: 3322806005d9b5560c50cb3d9fe1c5604016f061b5cbf9a3738e140ed36e44f9e9709374ac9560d8ab8fb87cd5c9b657de628821743da02619f94cc9bc461aa9
data/lib/cli.rb CHANGED
@@ -43,7 +43,6 @@ end
43
43
 
44
44
  require 'common/common'
45
45
  require 'common/exec'
46
- require 'common/release/release_directory'
47
46
  require 'common/version/release_version'
48
47
  require 'common/version/release_version_list'
49
48
  require 'common/version/bosh_version'
@@ -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(
@@ -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.uniq.size != manifest_yaml[@packages_folder].map { |p| p['version'] }.uniq.size
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
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Cli
3
- VERSION = '1.3215.3.0'
3
+ VERSION = '1.3215.4.0'
4
4
  end
5
5
  end
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.3.0
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-01 00:00:00.000000000 Z
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.3.0
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.3.0
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.3.0
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.3.0
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.3.0
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.3.0
138
+ version: 1.3215.4.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: net-ssh
141
141
  requirement: !ruby/object:Gem::Requirement