chef-provisioning-vra 0.2.0 → 0.2.1

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: f46d3e01ef741106c72a6f3ca7d95ff868e132ae
4
- data.tar.gz: b1d172a0eee394d504886690d688a895126566c2
3
+ metadata.gz: 58fb5f7df2919675ec5a75bead06f90068ddadf8
4
+ data.tar.gz: a32a6af1ee7750a6b383ff8d705e1462b38a5972
5
5
  SHA512:
6
- metadata.gz: 7b03355e6a996baf1a96530dac85937536ef8ff5000963921dd38e11864cf908d28934b0cfae37a12f7c079f0597a2e6cfe3cd1fcb764502a6eba15de6cb47aa
7
- data.tar.gz: c641d8830df10e30286a14c42992d87cf216eb52ac76ccba3c149fcda9d966fd58b16c34453f7b54ec8d55bb099a3cf7b9f7228e03485c84ed1ea9b2eb29bfc8
6
+ metadata.gz: 24beba481aa33edef3c9991705dd32f0039134c664edd516bff2db0e2bd567fe8d270ab5caa1da3e0f1c5c9ee83fa8a44a5c1a06172d1d39730ff929b9471a26
7
+ data.tar.gz: 41f0ed15009cb0444e7742140b23629014b7b92c331878c75c34d415180f40963de277c62d0e5474b0539e815d8c8c9da6367f5ceae4922b89f3aca2a8f26383
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ cache: bundler
3
+ sudo: false
4
+ rvm:
5
+ - 2.0.0
6
+ - 2.1
7
+ - 2.2
@@ -1,5 +1,8 @@
1
1
  # chef-provisioning-vra CHANGELOG
2
2
 
3
+ ## v0.2.1 (2015-12-17)
4
+ * [pr#6](https://github.com/chef-partners/chef-provisioning-vra/pull/6) Fixing bug that would cause machines to not properly converge when used with machine_batch
5
+
3
6
  ## v0.2.0 (2015-12-15)
4
7
  * [pr#5](https://github.com/chef-partners/chef-provisioning-vra/pull/5) Adding retry logic in wait_for method if an exception is encountered
5
8
 
data/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
+ require 'rubocop/rake_task'
3
4
 
4
5
  RSpec::Core::RakeTask.new(:spec)
6
+ RuboCop::RakeTask.new(:style)
5
7
 
6
- task default: :spec
8
+ task default: [ :spec, :style ]
@@ -25,4 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency 'bundler', '~> 1.7'
26
26
  spec.add_development_dependency 'rake', '~> 10.0'
27
27
  spec.add_development_dependency 'rspec', '~> 3.2'
28
+ spec.add_development_dependency 'rubocop', '~> 0.35'
28
29
  end
@@ -44,6 +44,7 @@ class Chef
44
44
  super
45
45
 
46
46
  _, @base_url = driver_url.split(':', 2)
47
+ @resources = {}
47
48
  end
48
49
 
49
50
  def allocate_machine(action_handler, machine_spec, machine_options)
@@ -126,12 +127,12 @@ class Chef
126
127
 
127
128
  def resource_for(machine_spec)
128
129
  return nil if machine_spec.location.nil?
129
- return @resource if @resource
130
130
 
131
131
  begin
132
- @resource = vra_client.resources.by_id(machine_spec.location['resource_id'])
132
+ resource_id = machine_spec.location['resource_id']
133
+ @resources[resource_id] ||= vra_client.resources.by_id(resource_id)
133
134
  rescue Vra::Exception::NotFound
134
- return nil
135
+ nil
135
136
  end
136
137
  end
137
138
 
@@ -19,7 +19,7 @@
19
19
  class Chef
20
20
  module Provisioning
21
21
  module VraDriver
22
- VERSION = '0.2.0'
22
+ VERSION = '0.2.1'
23
23
  end
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioning-vra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Partner Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-15 00:00:00.000000000 Z
11
+ date: 2015-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-provisioning
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.35'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.35'
97
111
  description: A Chef Provisioning driver for VMware vRealize Automation (vRA)
98
112
  email:
99
113
  - partnereng@chef.io
@@ -104,6 +118,7 @@ files:
104
118
  - ".gitignore"
105
119
  - ".rspec"
106
120
  - ".rubocop.yml"
121
+ - ".travis.yml"
107
122
  - CHANGELOG.md
108
123
  - Gemfile
109
124
  - LICENSE