bosh_cli 1.3184.1.0 → 1.3189.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: 677a816f47b5629d69c2f02af562a698a8df8ea3
4
- data.tar.gz: b5cdd269c59e2db13df0257930eb30346153ac81
3
+ metadata.gz: da5e824288a756e2421f40f6a779e60165cbff5e
4
+ data.tar.gz: 41ffbe243b8aa87e8bc45258e88b036a16578e7d
5
5
  SHA512:
6
- metadata.gz: edbab60f3f5202428ce2d66e25838acfa984c43c131fceeeef3f16337bee54a97b700a4399d9f5a73f099956eb0e84d912fb6ef47c1f3c57794b8e4625429fe6
7
- data.tar.gz: 847c98f173410f74852b977fd90f0056d9bb82436f23c8170f73a3781619123778840ccc9a87583a0c6257b2740284dc3b9fcdc45745f2f6aa8b26611ebff7c6
6
+ metadata.gz: 3faa0453dbe59ab204cb614dc68b40c397b50e3f674b3788d0dd614e31c954bf5a901750581a780db79c70a9f4fdb40504e4c97924628f2a38a09d233bf4f21c
7
+ data.tar.gz: 3d388bfbbb28d1d79f6cd3ab7e25fbe5ccdf7e9b39968e7626a3588104a59bc194e7a2038c900bea929f97824a7bd07719378869da3345ff221aa4a70deff29a
@@ -180,6 +180,10 @@ module Bosh
180
180
  body
181
181
  end
182
182
 
183
+ def attach_disk(deployment_name, job_name, instance_id, disk_cid)
184
+ request_and_track(:put, "/disks/#{disk_cid}/attachments?deployment=#{deployment_name}&job=#{job_name}&instance_id=#{instance_id}")
185
+ end
186
+
183
187
  def delete_orphan_disk_by_disk_cid(orphan_disk_cid)
184
188
  request_and_track(:delete, "/disks/#{orphan_disk_cid}")
185
189
  end
@@ -3,7 +3,6 @@ module Bosh::Cli::Command
3
3
  usage 'disks'
4
4
  desc 'List all orphaned disks in a deployment (requires --orphaned option)'
5
5
  option '--orphaned', 'Return orphaned disks'
6
-
7
6
  def list
8
7
  auth_required
9
8
  unless options[:orphaned]
@@ -42,6 +41,16 @@ module Bosh::Cli::Command
42
41
  say(disks_table)
43
42
  end
44
43
 
44
+ usage 'attach disk'
45
+ desc 'Attaches an disk to an instance and replaces the current disk'
46
+ def attach(job_name, id, disk_cid)
47
+ auth_required
48
+ manifest = prepare_deployment_manifest
49
+ status, result = director.attach_disk(manifest.name, job_name, id, disk_cid)
50
+
51
+ task_report(status, result, "Attached disk #{disk_cid} to #{job_name}/#{id}")
52
+ end
53
+
45
54
  usage 'delete disk'
46
55
  desc 'Deletes an orphaned disk'
47
56
  def delete(orphan_disk_cid)
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Cli
3
- VERSION = '1.3184.1.0'
3
+ VERSION = '1.3189.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.3184.1.0
4
+ version: 1.3189.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-01-22 00:00:00.000000000 Z
11
+ date: 2016-02-02 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.3184.1.0
19
+ version: 1.3189.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.3184.1.0
26
+ version: 1.3189.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.3184.1.0
33
+ version: 1.3189.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.3184.1.0
40
+ version: 1.3189.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cf-uaa-lib
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 2.4.0
103
+ version: 2.7.1
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 2.4.0
110
+ version: 2.7.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: terminal-table
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.3184.1.0
131
+ version: 1.3189.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.3184.1.0
138
+ version: 1.3189.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: net-ssh
141
141
  requirement: !ruby/object:Gem::Requirement