chef-provisioning-vsphere 2.0.9 → 2.0.10
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 +4 -4
- data/.rubocop_todo.yml +3 -3
- data/CHANGELOG.md +13 -2
- data/Rakefile +1 -1
- data/chef-provisioning-vsphere.gemspec +1 -1
- data/lib/chef/provisioning/vsphere_driver/clone_spec_builder.rb +1 -1
- data/lib/chef/provisioning/vsphere_driver/driver.rb +1 -1
- data/lib/chef/provisioning/vsphere_driver/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ca3d2606974b66b820aa053f32e8aa3e6804b92
|
|
4
|
+
data.tar.gz: add6bbf1fd61a3b887f5880131bec8a2d109d3e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 530c84cad6a830a35f8909400cfe4d09e07d796071b016fd3a79570f8fa1031a5844dbd26183b8c11b0c453cd5adfe19dd3df7af7eb3d28eb43c0d9b38180cfe
|
|
7
|
+
data.tar.gz: 69ab9ad90c70fa67552b710fc5f0aae696a1a30887837223ac0f7281f9351e4901bc01f60889d5810d2440f260697bb885449b6c2fdd024ec98921f4a268da0c
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2017-10-
|
|
3
|
+
# on 2017-10-30 16:48:40 -0700 using RuboCop version 0.49.1.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
@@ -52,13 +52,13 @@ Metrics/BlockNesting:
|
|
|
52
52
|
# Offense count: 3
|
|
53
53
|
# Configuration parameters: CountComments.
|
|
54
54
|
Metrics/ClassLength:
|
|
55
|
-
Max:
|
|
55
|
+
Max: 638
|
|
56
56
|
|
|
57
57
|
# Offense count: 11
|
|
58
58
|
Metrics/CyclomaticComplexity:
|
|
59
59
|
Max: 12
|
|
60
60
|
|
|
61
|
-
# Offense count:
|
|
61
|
+
# Offense count: 140
|
|
62
62
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
63
63
|
# URISchemes: http, https
|
|
64
64
|
Metrics/LineLength:
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [2.0.
|
|
4
|
-
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v2.0.
|
|
3
|
+
## [2.0.10](https://github.com/chef-partners/chef-provisioning-vsphere/tree/2.0.10) (2017-10-31)
|
|
4
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v2.0.9...2.0.10)
|
|
5
|
+
|
|
6
|
+
**Closed issues:**
|
|
7
|
+
|
|
8
|
+
- Undefined method `match?' for "machine\_name":String [\#65](https://github.com/chef-partners/chef-provisioning-vsphere/issues/65)
|
|
9
|
+
|
|
10
|
+
**Merged pull requests:**
|
|
11
|
+
|
|
12
|
+
- Fixed RuboCop and clone\_spec\_builder match? -\> match [\#64](https://github.com/chef-partners/chef-provisioning-vsphere/pull/64) ([bemehiser](https://github.com/bemehiser))
|
|
13
|
+
|
|
14
|
+
## [v2.0.9](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v2.0.9) (2017-10-30)
|
|
15
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v2.0.8...v2.0.9)
|
|
5
16
|
|
|
6
17
|
**Closed issues:**
|
|
7
18
|
|
data/Rakefile
CHANGED
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
|
16
16
|
s.homepage = 'https://github.com/chef-partners/chef-provisioning-vsphere'
|
|
17
17
|
s.license = 'MIT'
|
|
18
18
|
s.bindir = 'bin'
|
|
19
|
-
s.executables = %w
|
|
19
|
+
s.executables = %w[]
|
|
20
20
|
s.require_path = 'lib'
|
|
21
21
|
s.files = `git ls-files -z`.split("\x0")
|
|
22
22
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
|
@@ -178,7 +178,7 @@ module ChefProvisioningVsphere
|
|
|
178
178
|
def hostname_from(options, vm_name)
|
|
179
179
|
hostname = options[:hostname] || vm_name
|
|
180
180
|
test = /^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])$/
|
|
181
|
-
unless hostname.match
|
|
181
|
+
unless hostname.match(test)
|
|
182
182
|
raise 'Only letters, numbers or hyphens in hostnames allowed'
|
|
183
183
|
end
|
|
184
184
|
RbVmomi::VIM::CustomizationFixedName.new(name: hostname)
|
|
@@ -14,7 +14,7 @@ require 'chef/provisioning/vsphere_driver/vm_helper'
|
|
|
14
14
|
# Provisions machines in vSphere.
|
|
15
15
|
module ChefProvisioningVsphere
|
|
16
16
|
# Inherits the Chef::Provisioning::Driver attirbutes
|
|
17
|
-
class VsphereDriver < Chef::Provisioning::Driver
|
|
17
|
+
class VsphereDriver < Chef::Provisioning::Driver
|
|
18
18
|
include Chef::Mixin::ShellOut
|
|
19
19
|
|
|
20
20
|
# Creates the new object via the URL
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chef-provisioning-vsphere
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- CenturyLink Cloud
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-10-
|
|
12
|
+
date: 2017-10-31 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: chef
|