vm_shepherd 0.4.3 → 0.5.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ceb0f3801ef527e92ea81d31838858b713d4cdc
|
4
|
+
data.tar.gz: 4914b2c8d350a735ad021c8504790f6608fefddc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07612bcc114e6b4b59557b7557cbed0529381629678b162f1e15b8a14d3a0f7516c7c35aa459661b26688cc032db30e57a21cd88d363086dcbcd875edbae5fd9
|
7
|
+
data.tar.gz: 80f1e48934c3134b55d7a82d4816b3f6e92f677c4ac967204e35f763ecc4b97406ff37356887b085441b2ab1b05902930ec1689a251a69c60cb7f5001a2b6479
|
@@ -9,14 +9,14 @@ module VmShepherd
|
|
9
9
|
@tenant = tenant
|
10
10
|
end
|
11
11
|
|
12
|
-
def deploy(
|
13
|
-
say "Uploading the image #{
|
12
|
+
def deploy(raw_file_path, vm_options)
|
13
|
+
say "Uploading the image #{raw_file_path}"
|
14
14
|
image = image_service.images.create(
|
15
15
|
name: vm_options[:name],
|
16
|
-
size: File.size(
|
17
|
-
disk_format: '
|
16
|
+
size: File.size(raw_file_path),
|
17
|
+
disk_format: 'raw',
|
18
18
|
container_format: 'bare',
|
19
|
-
location:
|
19
|
+
location: raw_file_path,
|
20
20
|
)
|
21
21
|
say 'Finished uploading the image'
|
22
22
|
|
data/lib/vm_shepherd/version.rb
CHANGED
@@ -79,7 +79,7 @@ module VmShepherd
|
|
79
79
|
end
|
80
80
|
|
81
81
|
describe '#deploy' do
|
82
|
-
let(:path) { 'path/to/
|
82
|
+
let(:path) { 'path/to/raw/file' }
|
83
83
|
let(:file_size) { 42 }
|
84
84
|
|
85
85
|
let(:compute_service) { openstack_vm_manager.service }
|
@@ -111,6 +111,7 @@ module VmShepherd
|
|
111
111
|
uploaded_image = image_service.images.find { |image| image.name == openstack_vm_options[:name] }
|
112
112
|
expect(uploaded_image).to be
|
113
113
|
expect(uploaded_image.size).to eq(file_size)
|
114
|
+
expect(uploaded_image.disk_format).to eq('raw')
|
114
115
|
end
|
115
116
|
|
116
117
|
context 'when launching an instance' do
|
@@ -177,7 +178,7 @@ module VmShepherd
|
|
177
178
|
end
|
178
179
|
|
179
180
|
describe '#destroy' do
|
180
|
-
let(:path) { 'path/to/
|
181
|
+
let(:path) { 'path/to/raw/file' }
|
181
182
|
let(:file_size) { 42 }
|
182
183
|
|
183
184
|
let(:compute_service) { openstack_vm_manager.service }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vm_shepherd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ops Manager Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-v1
|
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
requirements: []
|
193
193
|
rubyforge_project:
|
194
|
-
rubygems_version: 2.4.
|
194
|
+
rubygems_version: 2.4.5
|
195
195
|
signing_key:
|
196
196
|
specification_version: 4
|
197
197
|
summary: A tool for booting and tearing down Ops Manager VMs on various Infrastructures.
|