knife-vrealize 2.1.1 → 3.0.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 +4 -4
- data/.rubocop.yml +4 -3
- data/.travis.yml +7 -3
- data/CHANGELOG.md +9 -2
- data/Gemfile +1 -0
- data/Rakefile +2 -2
- data/knife-vrealize.gemspec +2 -1
- data/lib/chef/knife/cloud/vra_service.rb +1 -2
- data/lib/chef/knife/cloud/vra_service_helpers.rb +1 -0
- data/lib/chef/knife/cloud/vra_service_options.rb +2 -1
- data/lib/chef/knife/vra_catalog_list.rb +1 -0
- data/lib/chef/knife/vra_server_create.rb +1 -0
- data/lib/chef/knife/vra_server_delete.rb +1 -0
- data/lib/chef/knife/vra_server_list.rb +1 -0
- data/lib/chef/knife/vra_server_show.rb +1 -0
- data/lib/chef/knife/vro_workflow_execute.rb +2 -1
- data/lib/knife-vrealize/version.rb +2 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 267c713a407cd2265caf2e14a8fe31cfd9b5014e
|
|
4
|
+
data.tar.gz: b84bf831de2c95d2c302ff5bd1fcadf6ad8aafa1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b50faa246e6875d2f9d25b3612236943a316c759e5dc65adb6a78fc260eab8347d0ed44a334b719982ef51fbaf9600afa954aa401f10c4a9df64681f552a19c
|
|
7
|
+
data.tar.gz: 0b83282bc5280d5d7e79d0bf8424d12b0ee9270c683da89937385c94f85261a9d301cbf10e156c6ecd7f702f03a2488a456b44bb6d28fbb9f4b235ec8f11fb85
|
data/.rubocop.yml
CHANGED
|
@@ -2,7 +2,8 @@ AllCops:
|
|
|
2
2
|
Exclude:
|
|
3
3
|
- 'spec/**/*'
|
|
4
4
|
- 'vendor/**/*'
|
|
5
|
-
|
|
5
|
+
TargetRubyVersion: 2.4.1
|
|
6
|
+
Metrics/AbcSize:
|
|
6
7
|
Max: 30
|
|
7
8
|
Metrics/LineLength:
|
|
8
9
|
Max: 150
|
|
@@ -12,7 +13,7 @@ Style/Documentation:
|
|
|
12
13
|
Enabled: false
|
|
13
14
|
Style/SignalException:
|
|
14
15
|
Enabled: false
|
|
15
|
-
|
|
16
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
|
16
17
|
EnforcedStyle: no_space
|
|
17
|
-
|
|
18
|
+
Layout/SpaceInsideBrackets:
|
|
18
19
|
Enabled: false
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [
|
|
4
|
-
[Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v2.1.
|
|
3
|
+
## [3.0.0](https://github.com/chef-partners/knife-vrealize/tree/3.0.0) (2017-09-15)
|
|
4
|
+
[Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v2.1.1...3.0.0)
|
|
5
|
+
|
|
6
|
+
**Merged pull requests:**
|
|
7
|
+
|
|
8
|
+
- Removed the chef 12 dependency [\#34](https://github.com/chef-partners/knife-vrealize/pull/34) ([jjasghar](https://github.com/jjasghar))
|
|
9
|
+
|
|
10
|
+
## [v2.1.1](https://github.com/chef-partners/knife-vrealize/tree/v2.1.1) (2017-08-21)
|
|
11
|
+
[Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v2.1.0...v2.1.1)
|
|
5
12
|
|
|
6
13
|
**Closed issues:**
|
|
7
14
|
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
+
|
|
2
3
|
require 'bundler/gem_tasks'
|
|
3
4
|
require 'rspec/core/rake_task'
|
|
4
5
|
require 'rubocop/rake_task'
|
|
@@ -17,5 +18,4 @@ rescue LoadError
|
|
|
17
18
|
puts 'github_changelog_generator is not available. gem install github_changelog_generator to generate changelogs'
|
|
18
19
|
end
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
task default: [ :spec, :style ]
|
|
21
|
+
task default: %i[spec style]
|
data/knife-vrealize.gemspec
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
# frozen_string_literal: true
|
|
3
|
+
|
|
3
4
|
lib = File.expand_path('../lib', __FILE__)
|
|
4
5
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
6
|
|
|
@@ -20,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
|
20
21
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
21
22
|
spec.require_paths = ['lib']
|
|
22
23
|
|
|
23
|
-
spec.add_dependency '
|
|
24
|
+
spec.add_dependency 'cookstyle'
|
|
24
25
|
spec.add_dependency 'knife-cloud', '~> 1.2.0'
|
|
25
26
|
spec.add_dependency 'vmware-vra', '~> 2'
|
|
26
27
|
spec.add_dependency 'vcoworkflows', '~> 0.2'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
+
|
|
2
3
|
#
|
|
3
4
|
# Author:: Chef Partner Engineering (<partnereng@chef.io>)
|
|
4
5
|
# Copyright:: Copyright (c) 2015 Chef Software, Inc.
|
|
@@ -128,8 +129,6 @@ class Chef
|
|
|
128
129
|
catalog_request.lease_days = options[:lease_days] unless options[:lease_days].nil?
|
|
129
130
|
catalog_request.notes = options[:notes] unless options[:notes].nil?
|
|
130
131
|
catalog_request.subtenant_id = options[:subtenant_id] unless options[:subtenant_id].nil?
|
|
131
|
-
|
|
132
|
-
# rubocop:disable all
|
|
133
132
|
options[:extra_params]&.each do |param|
|
|
134
133
|
catalog_request.set_parameter(param[:key], param[:type], param[:value])
|
|
135
134
|
end
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
+
|
|
2
3
|
#
|
|
3
4
|
# Author:: Chef Partner Engineering (<partnereng@chef.io>)
|
|
4
5
|
# Copyright:: Copyright (c) 2015 Chef Software, Inc.
|
|
@@ -28,7 +29,7 @@ class Chef
|
|
|
28
29
|
option :vra_base_url,
|
|
29
30
|
long: '--vra-base-url API_URL',
|
|
30
31
|
description: 'URL for the vRA server',
|
|
31
|
-
proc: proc { |url| url.sub(/(\/)
|
|
32
|
+
proc: proc { |url| url.sub(%r{/(\/)+$/}, '') }
|
|
32
33
|
|
|
33
34
|
option :vra_username,
|
|
34
35
|
long: '--vra-username USERNAME',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
+
|
|
2
3
|
#
|
|
3
4
|
# Author:: Chef Partner Engineering (<partnereng@chef.io>)
|
|
4
5
|
# Copyright:: Copyright (c) 2015 Chef Software, Inc.
|
|
@@ -118,7 +119,7 @@ class Chef
|
|
|
118
119
|
end
|
|
119
120
|
|
|
120
121
|
def missing_config_parameters
|
|
121
|
-
[
|
|
122
|
+
%i[vro_username vro_password vro_base_url].each_with_object([]) do |param, memo|
|
|
122
123
|
memo << param if locate_config_value(param).nil?
|
|
123
124
|
end
|
|
124
125
|
end
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
+
|
|
2
3
|
#
|
|
3
4
|
# Author:: Chef Partner Engineering (<partnereng@chef.io>)
|
|
4
5
|
# Copyright:: Copyright (c) 2015 Chef Software, Inc.
|
|
@@ -18,5 +19,5 @@
|
|
|
18
19
|
#
|
|
19
20
|
|
|
20
21
|
module KnifeVrealize
|
|
21
|
-
VERSION = '
|
|
22
|
+
VERSION = '3.0.0'
|
|
22
23
|
end
|
metadata
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: knife-vrealize
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
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: 2017-
|
|
11
|
+
date: 2017-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: cookstyle
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - "
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: knife-cloud
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|