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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7e502bced271f1b5046793bd8965232d23291a5
4
- data.tar.gz: 8cfa8bde123a2bf7a238e3f5cab9e05abc0bfbf2
3
+ metadata.gz: 32390871776d9ded0d615b3b4e453d0c4e798ce6
4
+ data.tar.gz: 23a6de2acdb418b1862ae472d66149f0b1d37e27
5
5
  SHA512:
6
- metadata.gz: e2913b86106d6e4b57656a729291eb590dae6f9ac10bc99a9b8e5cb60a61e197515dae763f8c5957093847c01ea95a30b8154f1eff0ecb6fc2b10f7419c3da6b
7
- data.tar.gz: 841d05a234ac68d9cb6147d29afa9f89cbf43e43d0f2ee106e7b66815907a42d6baf7298920b5fbb8befc628bd0fd9dd44e824065ec619835a39213c72e68c9e
6
+ metadata.gz: 2c3295257e06d661a1a8d98033ada7867ba1fa6229ade524441864fbfb0347d3991c27ea4e3f056afc58403307d820f60566162504a5328f7ab5dec610cb376f
7
+ data.tar.gz: d47c7cff06d2f0046c2cb0dc8cd19d497b7a0906dd05e706c583b8b18302a1ed18292828ba8a5ec5ea2adf2db168f3a7ca65c3b81a95d8afa523de6e4fb831cc
@@ -1,3 +1,3 @@
1
1
  module VmShepherd
2
- VERSION = '1.9.1'.freeze
2
+ VERSION = '1.10.0'.freeze
3
3
  end
@@ -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}")
@@ -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
@@ -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.9.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-01 00:00:00.000000000 Z
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