knife-vrealize 1.4.0 → 2.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: 685f497d4a7f7d514fcbc5ace96b61004f14a6d1
4
- data.tar.gz: b689e3de61b31e5615f454fd1ebf31c8f42b17be
3
+ metadata.gz: 119ff64fc42860075f3086bac2e433e71e3266ec
4
+ data.tar.gz: 1fe8b126eb87591617c4a1dce8f6ea7ca2ca1e04
5
5
  SHA512:
6
- metadata.gz: e457deb5adb9e686bfc9ec320ba164d7b0d563d0cfee1b113f20396af2ac5e34ca6b9976fddcf24e6fc14bda22c7f1aeb3cd05641956e5eb1eb7d0345415a36d
7
- data.tar.gz: 5d4762e856625283df25a725e789467491d13254dd75ddcadc165ac52b996e4ca293dbf86326a65a271c10309e49209227303fc97fcd89b18e508a080ff04bc0
6
+ metadata.gz: a3370b61d3fdc628718fccaae97dc6b7b800632ddeb60b65f3e2956cf89d5b96635ae18b6c679815af567b422aede28a6528ca1a0c53c33fd5b940ce53f6369c
7
+ data.tar.gz: 2568fb9b065fdeded6d064365743ac17129c2df596a4ff4922388fbb5b38264cd859e74e9e90fb6fcef7e56f722ddcd07fdff6361e71fe5f480ec83a5ecf608e
data/.gitignore CHANGED
@@ -12,3 +12,6 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+ .direnv/
16
+ .envrc
17
+ .ruby-version
@@ -0,0 +1,15 @@
1
+ language: ruby
2
+ cache: bundler
3
+ sudo: false
4
+ rvm:
5
+ - 2.1
6
+ - 2.2
7
+ branches:
8
+ only:
9
+ - master
10
+ notifications:
11
+ slack:
12
+ on_success: change
13
+ on_failure: always
14
+ rooms:
15
+ secure: fu2EAP4pBts00ofX/5WWPevugan8gqhbTnR3peQ6AHD89JrCyBPfhk3LJk2Nk8OzChHLETIjm9n1CvnnFIXZw+dRidN/lY47WFHPAIWBWfooS9eHR9liKqfnFodn6sJR+eifbOPGd3SMEdPdUIN8M/8/XhHvP4iZ6CjHwvTpWBZ6XAJY8RGtTfIM5Eup1de5bdHpolazGoydRgrP0biQKTMvVG6McyS3VXbZgoXof7Y78uBpEeJKqwUDPCdvCDR3ulcz/AkitlmAaotkU4k/CTR+VSRhYYSqRMRvVU0QYP/wSgf6es8g0YzkAs1KJrhV//OH5Y7w2Fsrr8rOKrFoXmMvqzw8KEGmIUwMzMJwizud7Mz5scCuDaGt5btQjMZcHS/i5s7iU2bxb2dFfQYs18t8s2xAWaFs2bytNc8G5+vObjY5ZAa3uS1YINZCuMeiclmK3mGCcMUS5xqIy6+dURmqoyPNPJcODh6XdX4VAXvTorb7eOxDCO0fgWL3qO6eRpMIcnMm3/UZznroYiWWH2LZHV9GqYG4ePRUCQFWQzp92Fzsl9j1aAthG11JOJpSjKt+jlM3HZTm55IC+jkHW37+ULOkLuzKzvu24R0wdVjgyKr8SIhI5OGV2NQAl86JJeY1ptxOiJEAldrsfgpzFJ9ZriDahVxBAhRnqgo6jTo=
@@ -1,22 +1,82 @@
1
- # knife-vrealize Change Log
1
+ # Change Log
2
2
 
3
- ## Release: v1.4.0
4
- * [pr#10](https://github.com/chef-partners/knife-vrealize/pull/10) Added logic to prefer the IP address if it's available, but fallback to the rsource record / server name if it's not.
3
+ ## [Unreleased](https://github.com/chef-partners/knife-vrealize/tree/v2.0.0) (2016-12-14)
5
4
 
6
- ## Release: v1.3.1
7
- * [pr#9](https://github.com/chef-partners/knife-vrealize/pull/9) Bug fix for handling of extra parameters, which were never properly sent to the vRA API
5
+ [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.5.0...v2.0.0)
8
6
 
9
- ## Release: v1.3.0
10
- * [pr#8](https://github.com/chef-partners/knife-vrealize/pull/8) Allow configuration of pagination result set size to work around known vRA pagination bug.
7
+ **Closed issues:**
11
8
 
12
- ## Release: v1.2.0
13
- * [pr#6](https://github.com/chef-partners/knife-vrealize/pull/6) Fixing issue with --server-create-timeout not being honored
9
+ - certificate verify failure [\#16](https://github.com/chef-partners/knife-vrealize/issues/16)
14
10
 
15
- ## Release: v1.1.0
16
- * new "vro workflow execute" command to allow arbitrary workflow executions via knife
11
+ **Merged pull requests:**
17
12
 
18
- ## Release: v1.0.1
19
- * remove release-candidate restriction from the version pin for the vmware-vra gem
13
+ - v1.5.1 [\#18](https://github.com/chef-partners/knife-vrealize/pull/18) ([jjasghar](https://github.com/jjasghar))
20
14
 
21
- ## Release: v1.0.0
22
- * Initial release with support for vRA
15
+ ## [v1.5.0](https://github.com/chef-partners/knife-vrealize/tree/v1.5.0) (2016-08-02)
16
+ [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.4.0...v1.5.0)
17
+
18
+ **Closed issues:**
19
+
20
+ - Provide a --noboostrap option [\#15](https://github.com/chef-partners/knife-vrealize/issues/15)
21
+ - Prompt for password if not supplied [\#14](https://github.com/chef-partners/knife-vrealize/issues/14)
22
+ - Can't create new servers [\#13](https://github.com/chef-partners/knife-vrealize/issues/13)
23
+ - --extra-param option continually failing with Unknown field error [\#11](https://github.com/chef-partners/knife-vrealize/issues/11)
24
+
25
+ **Merged pull requests:**
26
+
27
+ - bumped vra gem [\#17](https://github.com/chef-partners/knife-vrealize/pull/17) ([jjasghar](https://github.com/jjasghar))
28
+ - fixing travis notifications [\#12](https://github.com/chef-partners/knife-vrealize/pull/12) ([adamleff](https://github.com/adamleff))
29
+
30
+ ## [v1.4.0](https://github.com/chef-partners/knife-vrealize/tree/v1.4.0) (2015-10-30)
31
+ [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.3.1...v1.4.0)
32
+
33
+ **Merged pull requests:**
34
+
35
+ - Adding logic to fall back to the vRA resource/server name [\#10](https://github.com/chef-partners/knife-vrealize/pull/10) ([adamleff](https://github.com/adamleff))
36
+
37
+ ## [v1.3.1](https://github.com/chef-partners/knife-vrealize/tree/v1.3.1) (2015-10-29)
38
+ [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.3.0...v1.3.1)
39
+
40
+ **Merged pull requests:**
41
+
42
+ - Bug-fix for handling extra parameters [\#9](https://github.com/chef-partners/knife-vrealize/pull/9) ([adamleff](https://github.com/adamleff))
43
+
44
+ ## [v1.3.0](https://github.com/chef-partners/knife-vrealize/tree/v1.3.0) (2015-10-26)
45
+ [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.2.0...v1.3.0)
46
+
47
+ **Merged pull requests:**
48
+
49
+ - Added pagination size option and a higher-than-normal default. [\#8](https://github.com/chef-partners/knife-vrealize/pull/8) ([adamleff](https://github.com/adamleff))
50
+ - Correct homepage in gemspec [\#7](https://github.com/chef-partners/knife-vrealize/pull/7) ([philoserf](https://github.com/philoserf))
51
+
52
+ ## [v1.2.0](https://github.com/chef-partners/knife-vrealize/tree/v1.2.0) (2015-09-17)
53
+ [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.1.0...v1.2.0)
54
+
55
+ **Merged pull requests:**
56
+
57
+ - Enable `--server-create-timeout` option [\#6](https://github.com/chef-partners/knife-vrealize/pull/6) ([afiune](https://github.com/afiune))
58
+
59
+ ## [v1.1.0](https://github.com/chef-partners/knife-vrealize/tree/v1.1.0) (2015-08-14)
60
+ [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.0.0...v1.1.0)
61
+
62
+ **Merged pull requests:**
63
+
64
+ - New "vro workflow execute" command [\#5](https://github.com/chef-partners/knife-vrealize/pull/5) ([adamleff](https://github.com/adamleff))
65
+ - remove release candidate restriction from vmware-vra, add changelog [\#4](https://github.com/chef-partners/knife-vrealize/pull/4) ([adamleff](https://github.com/adamleff))
66
+ - changing from 2-spaces-after-period to 1 space [\#3](https://github.com/chef-partners/knife-vrealize/pull/3) ([adamleff](https://github.com/adamleff))
67
+
68
+ ## [v1.0.0](https://github.com/chef-partners/knife-vrealize/tree/v1.0.0) (2015-08-07)
69
+ [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.0.0.rc1...v1.0.0)
70
+
71
+ **Merged pull requests:**
72
+
73
+ - Release v1.0.0 [\#2](https://github.com/chef-partners/knife-vrealize/pull/2) ([adamleff](https://github.com/adamleff))
74
+
75
+ ## [v1.0.0.rc1](https://github.com/chef-partners/knife-vrealize/tree/v1.0.0.rc1) (2015-07-30)
76
+ **Merged pull requests:**
77
+
78
+ - Initial release of the knife-vrealize plugin [\#1](https://github.com/chef-partners/knife-vrealize/pull/1) ([adamleff](https://github.com/adamleff))
79
+
80
+
81
+
82
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
@@ -0,0 +1,8 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+ require 'rubocop/rake_task'
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+ RuboCop::RakeTask.new(:style)
7
+
8
+ task default: [ :spec, :style ]
@@ -19,11 +19,14 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.add_dependency 'chef', '~> 12.0'
22
+ spec.add_dependency 'chef', '~> 12'
23
23
  spec.add_dependency 'knife-cloud', '~> 1.2.0'
24
- spec.add_dependency 'vmware-vra', '~> 1.0'
24
+ spec.add_dependency 'vmware-vra', '~> 2'
25
25
  spec.add_dependency 'vcoworkflows', '~> 0.2'
26
+ spec.add_dependency 'rb-readline', '~> 0.5'
26
27
 
27
28
  spec.add_development_dependency 'bundler', '~> 1.7'
28
29
  spec.add_development_dependency 'rake', '~> 10.0'
30
+ spec.add_development_dependency 'rubocop', '~> 0.35'
31
+
29
32
  end
@@ -60,7 +60,7 @@ class Chef
60
60
 
61
61
  servers = submitted_request.resources.select(&:vm?)
62
62
  raise CloudExceptions::ServerCreateError, 'The vRA request created more than one server, but we were only expecting 1' if servers.length > 1
63
- raise CloudExceptions::ServerCreateError, 'The vRA request did not create any servers' if servers.length == 0
63
+ raise CloudExceptions::ServerCreateError, 'The vRA request did not create any servers' if servers.length.zero?
64
64
 
65
65
  servers.first
66
66
  end
@@ -55,11 +55,11 @@ class Chef
55
55
 
56
56
  def format_status_value(status)
57
57
  status = status.downcase
58
- if status == 'published'
59
- color = :green
60
- else
61
- color = :red
62
- end
58
+ color = if status == 'published'
59
+ :green
60
+ else
61
+ :red
62
+ end
63
63
 
64
64
  ui.color(status, color)
65
65
  end
@@ -26,7 +26,6 @@ require 'chef/knife/cloud/vra_service_options'
26
26
  class Chef
27
27
  class Knife
28
28
  class Cloud
29
- # rubocop:disable Style/BlockDelimiters
30
29
  class VraServerCreate < ServerCreateCommand
31
30
  include VraServiceHelpers
32
31
  include VraServiceOptions
@@ -17,5 +17,5 @@
17
17
  #
18
18
 
19
19
  module KnifeVrealize
20
- VERSION = '1.4.0'
20
+ VERSION = '2.0.0'.freeze
21
21
  end
@@ -33,8 +33,7 @@ describe Chef::Knife::VroWorkflowExecute do
33
33
  [ workflow_name,
34
34
  "key1=#{key1}",
35
35
  "key2=#{key2}",
36
- '--vro-workflow-id', workflow_id
37
- ]
36
+ '--vro-workflow-id', workflow_id]
38
37
  end
39
38
 
40
39
  subject { described_class.new(argv) }
@@ -185,7 +184,8 @@ describe Chef::Knife::VroWorkflowExecute do
185
184
  allow(Timeout).to receive(:timeout).and_raise(Timeout::Error)
186
185
  expect { subject.wait_for_workflow }.to raise_error(
187
186
  Timeout::Error, 'Workflow did not complete in 600 seconds. ' \
188
- 'Please check the vRO UI for more information.')
187
+ 'Please check the vRO UI for more information.' \
188
+ )
189
189
  end
190
190
  end
191
191
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-vrealize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 2.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: 2015-10-30 00:00:00.000000000 Z
11
+ date: 2016-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '12.0'
19
+ version: '12'
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.0'
26
+ version: '12'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: knife-cloud
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
47
+ version: '2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.0'
54
+ version: '2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: vcoworkflows
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rb-readline
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.5'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.5'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: bundler
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +108,20 @@ dependencies:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
110
  version: '10.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.35'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.35'
97
125
  description: Knife plugin to interact with VMware vRealize.
98
126
  email:
99
127
  - partnereng@chef.io
@@ -103,10 +131,12 @@ extra_rdoc_files: []
103
131
  files:
104
132
  - ".gitignore"
105
133
  - ".rubocop.yml"
134
+ - ".travis.yml"
106
135
  - CHANGELOG.md
107
136
  - Gemfile
108
137
  - LICENSE.txt
109
138
  - README.md
139
+ - Rakefile
110
140
  - knife-vrealize.gemspec
111
141
  - lib/chef/knife/cloud/vra_service.rb
112
142
  - lib/chef/knife/cloud/vra_service_helpers.rb
@@ -147,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
177
  version: '0'
148
178
  requirements: []
149
179
  rubyforge_project:
150
- rubygems_version: 2.4.8
180
+ rubygems_version: 2.5.1
151
181
  signing_key:
152
182
  specification_version: 4
153
183
  summary: Knife plugin to interact with VMware vRealize.
@@ -161,4 +191,3 @@ test_files:
161
191
  - spec/unit/vra_server_list_spec.rb
162
192
  - spec/unit/vra_server_show_spec.rb
163
193
  - spec/unit/vro_workflow_execute_spec.rb
164
- has_rdoc: