knife-vcenter 2.0.6 → 2.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '07168708394600e752a639a78660b85f704f7d410b778d12f3746cbea2f1cdec'
4
- data.tar.gz: f78378267d355e59bcc7c5469fd35144026ceb1182e048375ab6de31eda02cab
3
+ metadata.gz: 05dc0c061e1643f87f6982c507c9398dd3509cae2a99d2e60bffb129b6743c2c
4
+ data.tar.gz: 57d46318d92bbc9a15ab8871a7a2b8761f3cced032228cc256413574209c2622
5
5
  SHA512:
6
- metadata.gz: dad2db59929167e9d426caddf974a34e67e69d1b799344b275d0ead30acc41f9cf0b8b5cdb100d6eec8fcaf54d60f9a244be7af25fc8da55266530f8a83eb7f7
7
- data.tar.gz: d83b1ea55afa8fbd45e845f276afa4907871653ab308d641d2196d016ccf27d09e4e8e3232155eaa511667d2e2d2722db45e5e3d88e0b802d0ee96214bf1468a
6
+ metadata.gz: 4c7e4b2851e6430614227d1ec8133aec25deb87eac0c34b33c27c797ef8f9cbf669d1c61bf9a02341191b372eba890c702ca3602ce158aa78b07fa53ded29f9a
7
+ data.tar.gz: c758e4ae9d8af6a98afd48cb6f731a05f8d240cb0efd4a7a46a5e3c357216242546d91ac1f19a128e141f78c2fcdd779dc5e78a1899d338990d0683d4ea3035b
@@ -20,5 +20,5 @@
20
20
  # Provisions machines in vCenter
21
21
  module KnifeVcenter
22
22
  # The version of this amazing Gem, you should <3 it.
23
- VERSION = "2.0.6"
23
+ VERSION = "2.0.8"
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-vcenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.8
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: 2019-10-12 00:00:00.000000000 Z
11
+ date: 2019-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: knife-cloud
@@ -191,8 +191,6 @@ files:
191
191
  - lib/chef/knife/vcenter_vm_show.rb
192
192
  - lib/knife-vcenter/version.rb
193
193
  - lib/support/clone_vm.rb
194
- - spec/spec_helper.rb
195
- - spec/unit/vcenter_vm_list_spec.rb
196
194
  homepage: https://github.com/chef/knife-vcenter
197
195
  licenses:
198
196
  - Apache-2.0
@@ -216,6 +214,4 @@ rubygems_version: 3.0.3
216
214
  signing_key:
217
215
  specification_version: 4
218
216
  summary: Knife plugin to VMware vCenter.
219
- test_files:
220
- - spec/unit/vcenter_vm_list_spec.rb
221
- - spec/spec_helper.rb
217
+ test_files: []
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
- #
3
- # Author:: Chef Partner Engineering (<partnereng@chef.io>)
4
- # Copyright:: Copyright (c) 2017-2018 Chef Software, Inc.
5
- # License:: Apache License, Version 2.0
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
@@ -1,66 +0,0 @@
1
- # frozen_string_literal: true
2
- #
3
- # Author:: Chef Partner Engineering (<partnereng@chef.io>)
4
- # Copyright:: Copyright (c) 2017-2018 Chef Software, Inc.
5
- # License:: Apache License, Version 2.0
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- require "spec_helper"
21
- require "chef/knife/vcenter_vm_list"
22
- require "support/shared_examples_for_command"
23
-
24
- class PowerStatus < BasicObject
25
- attr_reader :value
26
- def initialize(state)
27
- @value = state
28
- end
29
- end
30
-
31
- describe Chef::Knife::Cloud::VcenterVmList do
32
- it_behaves_like Chef::Knife::Cloud::Command, Chef::Knife::Cloud::VcenterVmList.new
33
-
34
- subject { described_class.new }
35
-
36
- describe "#format_power_status" do
37
- context 'when the power is "POWERED_ON"' do
38
- it "displays with green" do
39
- expect(subject.ui).to receive(:color).with("POWERED_ON", :green)
40
- subject.format_power_status(PowerStatus.new("POWERED_ON"))
41
- end
42
- end
43
-
44
- context 'when the power is "POWERED_OFF"' do
45
- it "displays with red" do
46
- expect(subject.ui).to receive(:color).with("POWERED_OFF", :red)
47
- subject.format_power_status(PowerStatus.new("POWERED_OFF"))
48
- end
49
- end
50
-
51
- context 'when the power is "SUSPENDED"' do
52
- it "displays with red" do
53
- expect(subject.ui).to receive(:color).with("SUSPENDED", :yellow)
54
- subject.format_power_status(PowerStatus.new("SUSPENDED"))
55
- end
56
- end
57
- end
58
-
59
- describe "#format_memory_value" do
60
- context "when the memory value is 8192" do
61
- it "returns 8,192" do
62
- expect(subject.format_memory_value(8192)).to eq("8,192")
63
- end
64
- end
65
- end
66
- end