bosh_cli 1.3003.0 → 1.3004.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/deployment_helper.rb +0 -54
- 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: 7da18cea0a58a3417c4deec598524500b7cb0196
|
4
|
+
data.tar.gz: 0531f36f4918099d4ba2e38f127634980db29ece
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f90fce563fb23698c59d926a846c9112f5e8cdc3321b0fe479198d4635e72ef8fbc3bf3d7c3ff2ae9d654f5efdc1011c96483efa287a78be4cde1ffffc9000e8
|
7
|
+
data.tar.gz: d6913c777c85bfa6345c66c101c11b46210a0dac6c0a9b9c06b05a844d21dd85be07097143989ffcc7c9c2e0ba73cdcc73f0c834ae0e5c503461c6df106a778d
|
@@ -71,17 +71,11 @@ module Bosh::Cli
|
|
71
71
|
|
72
72
|
if diff[:release]
|
73
73
|
print_summary(diff, :release, redact_diff)
|
74
|
-
warn_about_release_changes(diff[:release]) if interactive
|
75
74
|
nl
|
76
75
|
end
|
77
76
|
|
78
77
|
if diff[:releases]
|
79
78
|
print_summary(diff, :releases, redact_diff)
|
80
|
-
if interactive
|
81
|
-
diff[:releases].each do |release_diff|
|
82
|
-
warn_about_release_changes(release_diff)
|
83
|
-
end
|
84
|
-
end
|
85
79
|
nl
|
86
80
|
end
|
87
81
|
|
@@ -92,7 +86,6 @@ module Bosh::Cli
|
|
92
86
|
nl
|
93
87
|
|
94
88
|
print_summary(diff, :resource_pools, redact_diff)
|
95
|
-
warn_about_stemcell_changes(diff) if interactive
|
96
89
|
nl
|
97
90
|
|
98
91
|
print_summary(diff, :disk_pools, redact_diff)
|
@@ -120,36 +113,6 @@ module Bosh::Cli
|
|
120
113
|
true
|
121
114
|
end
|
122
115
|
|
123
|
-
def warn_about_stemcell_changes(diff)
|
124
|
-
old_stemcells = Set.new
|
125
|
-
new_stemcells = Set.new
|
126
|
-
|
127
|
-
diff[:resource_pools].each do |pool|
|
128
|
-
old_stemcells << {
|
129
|
-
:name => pool[:stemcell][:name].old,
|
130
|
-
:version => pool[:stemcell][:version].old
|
131
|
-
}
|
132
|
-
new_stemcells << {
|
133
|
-
:name => pool[:stemcell][:name].new,
|
134
|
-
:version => pool[:stemcell][:version].new
|
135
|
-
}
|
136
|
-
end
|
137
|
-
|
138
|
-
if old_stemcells != new_stemcells
|
139
|
-
unless confirmed?('Stemcell update has been detected. Are you sure you want to update stemcells?')
|
140
|
-
cancel_deployment
|
141
|
-
end
|
142
|
-
end
|
143
|
-
|
144
|
-
if old_stemcells.size != new_stemcells.size
|
145
|
-
say('Stemcell update seems to be inconsistent with current '.make_red +
|
146
|
-
'deployment. Please carefully review changes above.'.make_red)
|
147
|
-
unless confirmed?('Are you sure this configuration is correct?')
|
148
|
-
cancel_deployment
|
149
|
-
end
|
150
|
-
end
|
151
|
-
end
|
152
|
-
|
153
116
|
def job_unique_in_deployment?(manifest_hash, job_name)
|
154
117
|
job = find_job(manifest_hash, job_name)
|
155
118
|
job ? job.fetch('instances') == 1 : false
|
@@ -248,22 +211,5 @@ module Bosh::Cli
|
|
248
211
|
def normalize_deployment_manifest(manifest_hash)
|
249
212
|
DeploymentManifest.new(manifest_hash).normalize
|
250
213
|
end
|
251
|
-
|
252
|
-
def warn_about_release_changes(release_diff)
|
253
|
-
if release_diff[:name].changed?
|
254
|
-
say('Release name has changed: %s -> %s'.make_red % [
|
255
|
-
release_diff[:name].old, release_diff[:name].new])
|
256
|
-
unless confirmed?('This is very serious and potentially destructive ' +
|
257
|
-
'change. ARE YOU SURE YOU WANT TO DO IT?')
|
258
|
-
cancel_deployment
|
259
|
-
end
|
260
|
-
elsif release_diff[:version].changed?
|
261
|
-
say('Release version has changed: %s -> %s'.make_yellow % [
|
262
|
-
release_diff[:version].old, release_diff[:version].new])
|
263
|
-
unless confirmed?('Are you sure you want to deploy this version?')
|
264
|
-
cancel_deployment
|
265
|
-
end
|
266
|
-
end
|
267
|
-
end
|
268
214
|
end
|
269
215
|
end
|
data/lib/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3004.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VMware
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.3004.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.
|
26
|
+
version: 1.3004.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.
|
33
|
+
version: 1.3004.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.
|
40
|
+
version: 1.3004.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.
|
131
|
+
version: 1.3004.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.
|
138
|
+
version: 1.3004.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: net-ssh
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -306,7 +306,7 @@ dependencies:
|
|
306
306
|
version: '0'
|
307
307
|
description: |-
|
308
308
|
BOSH CLI
|
309
|
-
|
309
|
+
b8f961
|
310
310
|
email: support@cloudfoundry.com
|
311
311
|
executables:
|
312
312
|
- bosh
|