knife-vrealize 2.1.1 → 3.0.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: 320884d42ac8d281e66402bdd575c43cb7d0cfbe
4
- data.tar.gz: 48e8fc2912dc71e1808f1247cdf8e2abd2726c24
3
+ metadata.gz: 267c713a407cd2265caf2e14a8fe31cfd9b5014e
4
+ data.tar.gz: b84bf831de2c95d2c302ff5bd1fcadf6ad8aafa1
5
5
  SHA512:
6
- metadata.gz: df9c722d924ebcae178f4e488461c64fbe1b0f589d5ca53064956b345bff3982361c21981dec79f450f1653deebaff5fda105f4f586b4d376ca3c29c55bb9ad3
7
- data.tar.gz: f12a827dfce7ca607139668602a1482c5c4ada26c8a0097b92d677caff5e2a68852c3038b5e8910e6347f8f698d3c39a388f7dc327e5a0549b0f0c48980b7a27
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
- vendor/AbcSize:
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
- Style/SpaceAroundEqualsInParameterDefault:
16
+ Layout/SpaceAroundEqualsInParameterDefault:
16
17
  EnforcedStyle: no_space
17
- Style/SpaceInsideBrackets:
18
+ Layout/SpaceInsideBrackets:
18
19
  Enabled: false
data/.travis.yml CHANGED
@@ -3,13 +3,17 @@ cache: bundler
3
3
  sudo: false
4
4
 
5
5
  rvm:
6
- - 2.2
7
- - 2.3.3
6
+ - 2.3.4
8
7
  - 2.4.1
8
+ - ruby-head
9
9
 
10
10
  branches:
11
11
  only:
12
- - master
12
+ - master
13
+
14
+ matrix:
15
+ allow_failures:
16
+ - rvm: ruby-head
13
17
 
14
18
  script:
15
19
  - bundle exec rake style
data/CHANGELOG.md CHANGED
@@ -1,7 +1,14 @@
1
1
  # Change Log
2
2
 
3
- ## [2.1.1](https://github.com/chef-partners/knife-vrealize/tree/2.1.1) (2017-08-21)
4
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v2.1.0...2.1.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
@@ -1,3 +1,4 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  source 'https://rubygems.org'
3
4
  gemspec
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]
@@ -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 'chef', '~> 12'
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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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
- [:vro_username, :vro_password, :vro_base_url].each_with_object([]) do |param, memo|
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 = '2.1.1'.freeze
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: 2.1.1
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-08-21 00:00:00.000000000 Z
11
+ date: 2017-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: chef
14
+ name: cookstyle
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '12'
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: '12'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: knife-cloud
29
29
  requirement: !ruby/object:Gem::Requirement