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: d4eafd99e5dc6b6cb3fd27680141f6d7116255df
4
- data.tar.gz: 7be49515e02bd2fd646491ee2cb6464b22b3daf8
3
+ metadata.gz: 9ceb0f3801ef527e92ea81d31838858b713d4cdc
4
+ data.tar.gz: 4914b2c8d350a735ad021c8504790f6608fefddc
5
5
  SHA512:
6
- metadata.gz: feb0af4347f8cef5555b535b3852efc1b69bc92ebae80e7c27730118e0936a7ef9112fde84fc3c8175e4dc59ab7ac86f716329132ea90779e66f9f3d7af236b0
7
- data.tar.gz: fc65bb119c0fde7855072dd251944d297270e0dc709556ac0369184726d3b550c80354f4cc3b73bfc0a5d6056de2b041c80158c0a19cfad39fec5c3be3259728
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(qcow2_file_path, vm_options)
13
- say "Uploading the image #{qcow2_file_path}"
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(qcow2_file_path),
17
- disk_format: 'qcow2',
16
+ size: File.size(raw_file_path),
17
+ disk_format: 'raw',
18
18
  container_format: 'bare',
19
- location: qcow2_file_path,
19
+ location: raw_file_path,
20
20
  )
21
21
  say 'Finished uploading the image'
22
22
 
@@ -1,3 +1,3 @@
1
1
  module VmShepherd
2
- VERSION = '0.4.3'.freeze
2
+ VERSION = '0.5.0'.freeze
3
3
  end
@@ -79,7 +79,7 @@ module VmShepherd
79
79
  end
80
80
 
81
81
  describe '#deploy' do
82
- let(:path) { 'path/to/qcow2/file' }
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/qcow2/file' }
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.3
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-15 00:00:00.000000000 Z
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.6
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.