bosh_cli 1.3215.4.0 → 1.3232.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cli.rb +1 -0
- data/lib/cli/base_command.rb +1 -1
- data/lib/cli/basic_login_strategy.rb +3 -3
- data/lib/cli/blob_manager.rb +14 -14
- data/lib/cli/client/director.rb +16 -5
- data/lib/cli/commands/backup.rb +2 -2
- data/lib/cli/commands/cloudcheck.rb +2 -2
- data/lib/cli/commands/deployment.rb +22 -22
- data/lib/cli/commands/deployment_diff.rb +7 -3
- data/lib/cli/commands/disks.rb +1 -1
- data/lib/cli/commands/errand.rb +2 -2
- data/lib/cli/commands/events.rb +55 -0
- data/lib/cli/commands/help.rb +1 -1
- data/lib/cli/commands/job.rb +3 -3
- data/lib/cli/commands/job_management.rb +1 -1
- data/lib/cli/commands/locks.rb +6 -4
- data/lib/cli/commands/login.rb +1 -1
- data/lib/cli/commands/misc.rb +4 -4
- data/lib/cli/commands/package.rb +3 -3
- data/lib/cli/commands/property_management.rb +8 -8
- data/lib/cli/commands/release/delete_release.rb +3 -3
- data/lib/cli/commands/release/export_release.rb +2 -2
- data/lib/cli/commands/release/finalize_release.rb +26 -12
- data/lib/cli/commands/release/upload_release.rb +2 -2
- data/lib/cli/commands/release/verify_release.rb +2 -2
- data/lib/cli/commands/restore.rb +3 -3
- data/lib/cli/commands/snapshot.rb +5 -5
- data/lib/cli/commands/ssh.rb +2 -2
- data/lib/cli/commands/stemcell.rb +8 -8
- data/lib/cli/commands/task.rb +4 -4
- data/lib/cli/commands/user.rb +3 -3
- data/lib/cli/commands/vms.rb +1 -1
- data/lib/cli/config.rb +1 -1
- data/lib/cli/core_ext.rb +4 -4
- data/lib/cli/deployment_manifest_compiler.rb +1 -1
- data/lib/cli/file_with_progress_bar.rb +2 -0
- data/lib/cli/job_property_collection.rb +2 -2
- data/lib/cli/job_state.rb +2 -2
- data/lib/cli/logs_downloader.rb +1 -1
- data/lib/cli/manifest.rb +3 -3
- data/lib/cli/public_stemcell_presenter.rb +3 -3
- data/lib/cli/release.rb +3 -3
- data/lib/cli/release_compiler.rb +2 -2
- data/lib/cli/release_tarball.rb +2 -1
- data/lib/cli/runner.rb +1 -1
- data/lib/cli/sorted_release_archiver.rb +1 -12
- data/lib/cli/uaa_login_strategy.rb +1 -1
- data/lib/cli/version.rb +1 -1
- data/lib/cli/versions/local_artifact_storage.rb +2 -2
- data/lib/cli/versions/releases_dir_migrator.rb +3 -3
- data/lib/cli/versions/version_file_resolver.rb +1 -1
- data/lib/cli/versions/versions_index.rb +10 -11
- metadata +9 -8
@@ -54,21 +54,19 @@ module Bosh::Cli::Versions
|
|
54
54
|
version = new_build['version']
|
55
55
|
|
56
56
|
if version.blank?
|
57
|
-
raise Bosh::Cli::InvalidIndex, "Cannot save index entry without a version:
|
57
|
+
raise Bosh::Cli::InvalidIndex, "Cannot save index entry without a version: '#{new_build}'"
|
58
58
|
end
|
59
59
|
|
60
60
|
if @data['builds'][new_key]
|
61
|
-
raise "Trying to add duplicate entry
|
61
|
+
raise "Trying to add duplicate entry '#{new_key}' into index '#{@index_file}'"
|
62
62
|
end
|
63
63
|
|
64
64
|
each do |key, build|
|
65
65
|
if key != new_key && build['version'] == version
|
66
|
-
raise "Trying to add duplicate version
|
66
|
+
raise "Trying to add duplicate version '#{version}' into index '#{@index_file}'"
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
create_directories
|
71
|
-
|
72
70
|
@data['builds'][new_key] = new_build
|
73
71
|
|
74
72
|
save
|
@@ -79,15 +77,15 @@ module Bosh::Cli::Versions
|
|
79
77
|
def update_version(key, new_build)
|
80
78
|
old_build = @data['builds'][key]
|
81
79
|
unless old_build
|
82
|
-
raise "Cannot update non-existent entry with key
|
80
|
+
raise "Cannot update non-existent entry with key '#{key}'"
|
83
81
|
end
|
84
82
|
|
85
83
|
if old_build['blobstore_id']
|
86
|
-
raise "Cannot update entry
|
84
|
+
raise "Cannot update entry '#{old_build}' with a blobstore id"
|
87
85
|
end
|
88
86
|
|
89
87
|
if new_build['version'] != old_build['version']
|
90
|
-
raise "Cannot update entry
|
88
|
+
raise "Cannot update entry '#{old_build}' with a different version: '#{new_build}'"
|
91
89
|
end
|
92
90
|
|
93
91
|
@data['builds'][key] = new_build
|
@@ -98,7 +96,7 @@ module Bosh::Cli::Versions
|
|
98
96
|
def remove_version(key)
|
99
97
|
build = @data['builds'][key]
|
100
98
|
unless build
|
101
|
-
raise "Cannot remove non-existent entry with key
|
99
|
+
raise "Cannot remove non-existent entry with key '#{key}'"
|
102
100
|
end
|
103
101
|
|
104
102
|
@data['builds'].delete(key)
|
@@ -124,11 +122,12 @@ module Bosh::Cli::Versions
|
|
124
122
|
format_version_string = @data['format-version']
|
125
123
|
SemiSemantic::Version.parse(format_version_string)
|
126
124
|
rescue ArgumentError, SemiSemantic::ParseError
|
127
|
-
raise InvalidIndex, "Invalid versions index version in
|
128
|
-
"
|
125
|
+
raise InvalidIndex, "Invalid versions index version in '#{@index_file}', " +
|
126
|
+
"'#{format_version_string}' given, SemiSemantic version expected"
|
129
127
|
end
|
130
128
|
|
131
129
|
def save
|
130
|
+
create_directories
|
132
131
|
VersionsIndex.write_index_yaml(@index_file, @data)
|
133
132
|
end
|
134
133
|
|
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.
|
4
|
+
version: 1.3232.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-25 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.
|
19
|
+
version: 1.3232.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.3232.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.3232.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.3232.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.3232.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.3232.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: net-ssh
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -362,6 +362,7 @@ files:
|
|
362
362
|
- lib/cli/commands/deployment_diff.rb
|
363
363
|
- lib/cli/commands/disks.rb
|
364
364
|
- lib/cli/commands/errand.rb
|
365
|
+
- lib/cli/commands/events.rb
|
365
366
|
- lib/cli/commands/help.rb
|
366
367
|
- lib/cli/commands/instances.rb
|
367
368
|
- lib/cli/commands/job.rb
|