vm_shepherd 1.9.1 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vm_shepherd/version.rb +1 -1
- data/lib/vm_shepherd/vsphere_manager.rb +0 -13
- data/spec/spec_helper.rb +4 -0
- data/vm_shepherd.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32390871776d9ded0d615b3b4e453d0c4e798ce6
|
4
|
+
data.tar.gz: 23a6de2acdb418b1862ae472d66149f0b1d37e27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c3295257e06d661a1a8d98033ada7867ba1fa6229ade524441864fbfb0347d3991c27ea4e3f056afc58403307d820f60566162504a5328f7ab5dec610cb376f
|
7
|
+
data.tar.gz: d47c7cff06d2f0046c2cb0dc8cd19d497b7a0906dd05e706c583b8b18302a1ed18292828ba8a5ec5ea2adf2db168f3a7ca65c3b81a95d8afa523de6e4fb831cc
|
data/lib/vm_shepherd/version.rb
CHANGED
@@ -126,7 +126,6 @@ module VmShepherd
|
|
126
126
|
|
127
127
|
find_vms(folder).each do |vm|
|
128
128
|
power_off_vm(vm)
|
129
|
-
destroy_vm_datastore_folder(vm)
|
130
129
|
end
|
131
130
|
|
132
131
|
begin
|
@@ -165,18 +164,6 @@ module VmShepherd
|
|
165
164
|
end
|
166
165
|
end
|
167
166
|
|
168
|
-
|
169
|
-
def destroy_vm_datastore_folder(vm)
|
170
|
-
begin
|
171
|
-
vm_datastore_folder = vm.config.files.snapshotDirectory
|
172
|
-
logger.info("BEGIN vm_datastore_folder.delete_datastore_file_task folder=#{vm_datastore_folder}")
|
173
|
-
file_manager.DeleteDatastoreFile_Task(name: vm_datastore_folder, datacenter: datacenter).wait_for_completion
|
174
|
-
logger.info("END vm_datastore_folder.delete_datastore_file_task folder=#{vm_datastore_folder}")
|
175
|
-
rescue RbVmomi::Fault => e
|
176
|
-
logger.info("ERROR vm_datastore_folder.delete_datastore_file_task. Skipping ... folder=#{vm_datastore_folder} #{e.inspect}")
|
177
|
-
end
|
178
|
-
end
|
179
|
-
|
180
167
|
def deploy_ovf_template(ovf_file_path, vsphere_config)
|
181
168
|
template_name = [TEMPLATE_PREFIX, Time.new.strftime('%F-%H-%M'), cluster(vsphere_config).name].join('-')
|
182
169
|
logger.info("BEGIN deploy_ovf ovf_file=#{ovf_file_path} template_name=#{template_name}")
|
data/spec/spec_helper.rb
CHANGED
@@ -2,6 +2,10 @@ SPEC_ROOT = File.expand_path(__dir__)
|
|
2
2
|
|
3
3
|
$LOAD_PATH << SPEC_ROOT
|
4
4
|
|
5
|
+
require 'codeclimate-test-reporter'
|
6
|
+
|
7
|
+
CodeClimate::TestReporter.start
|
8
|
+
|
5
9
|
RSpec.configure do |config|
|
6
10
|
config.expect_with :rspec do |expectations|
|
7
11
|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
data/vm_shepherd.gemspec
CHANGED
@@ -29,4 +29,5 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency 'rspec', '~> 3.2'
|
30
30
|
spec.add_development_dependency 'recursive-open-struct', '~> 0.5.0'
|
31
31
|
spec.add_development_dependency 'rubocop'
|
32
|
+
spec.add_development_dependency 'codeclimate-test-reporter'
|
32
33
|
end
|
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: 1.
|
4
|
+
version: 1.10.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-07-
|
11
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-v1
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: codeclimate-test-reporter
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
139
153
|
description: A tool for booting and tearing down Ops Manager VMs on various Infrastructures.
|
140
154
|
email:
|
141
155
|
- cf-tempest-eng@pivotal.io
|