knife-vcenter 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/knife/vcenter_cluster_list.rb +5 -3
- data/lib/chef/knife/vcenter_datacenter_list.rb +5 -3
- data/lib/chef/knife/vcenter_host_list.rb +5 -3
- data/lib/chef/knife/vcenter_vm_clone.rb +5 -3
- data/lib/chef/knife/vcenter_vm_create.rb +5 -3
- data/lib/chef/knife/vcenter_vm_delete.rb +5 -3
- data/lib/chef/knife/vcenter_vm_list.rb +5 -3
- data/lib/chef/knife/vcenter_vm_show.rb +6 -3
- data/lib/knife-vcenter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30783a8893d5fad7984e04166e50a528ebdc0c1f41949b3e707d0ebdb92a32cd
|
4
|
+
data.tar.gz: 6ee01e24d78b1ca7636f01ea05f8f83f8773b87f208adc2b67a906f8c94c9a54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79ad5b63a41b9b98f70d8e883b3ed15ef501a72b1cca9e24f180a18c13542051b2e1d9fa2459b9df273ccf75b9bddb57e38a3bfb6f94427035245909920c55a7
|
7
|
+
data.tar.gz: 8e2a7245f496e64646e27b674ccef4b5ab7798591e979f576e658761bb78a1e802a26af0f706af3a613c2ca899dcf37ed6a8d36e17b36570ffead0a822154947
|
@@ -19,8 +19,6 @@
|
|
19
19
|
|
20
20
|
require "chef/knife"
|
21
21
|
require "chef/knife/cloud/list_resource_command"
|
22
|
-
require_relative "cloud/vcenter_service"
|
23
|
-
require_relative "cloud/vcenter_service_helpers"
|
24
22
|
require_relative "cloud/vcenter_service_options"
|
25
23
|
|
26
24
|
class Chef
|
@@ -28,11 +26,15 @@ class Chef
|
|
28
26
|
class Cloud
|
29
27
|
# Extends ResourceListcommand to talk to vCenter
|
30
28
|
class VcenterClusterList < ResourceListCommand
|
31
|
-
include VcenterServiceHelpers
|
32
29
|
include VcenterServiceOptions
|
33
30
|
|
34
31
|
banner "knife vcenter cluster list"
|
35
32
|
|
33
|
+
# lazy load this file as it includes vmware deps that we only want at plugin runtime
|
34
|
+
deps do
|
35
|
+
require_relative "cloud/vcenter_service"
|
36
|
+
end
|
37
|
+
|
36
38
|
# Creates the columns and how to sort the columns
|
37
39
|
#
|
38
40
|
def before_exec_command
|
@@ -19,8 +19,6 @@
|
|
19
19
|
|
20
20
|
require "chef/knife"
|
21
21
|
require "chef/knife/cloud/list_resource_command"
|
22
|
-
require_relative "cloud/vcenter_service"
|
23
|
-
require_relative "cloud/vcenter_service_helpers"
|
24
22
|
require_relative "cloud/vcenter_service_options"
|
25
23
|
|
26
24
|
class Chef
|
@@ -30,11 +28,15 @@ class Chef
|
|
30
28
|
class Cloud
|
31
29
|
# Extends the ResourceListCommand for specific vCenter
|
32
30
|
class VcenterDatacenterList < ResourceListCommand
|
33
|
-
include VcenterServiceHelpers
|
34
31
|
include VcenterServiceOptions
|
35
32
|
|
36
33
|
banner "knife vcenter datacenter list"
|
37
34
|
|
35
|
+
# lazy load this file as it includes vmware deps that we only want at plugin runtime
|
36
|
+
deps do
|
37
|
+
require_relative "cloud/vcenter_service"
|
38
|
+
end
|
39
|
+
|
38
40
|
# Sets up the columns for listing out and sorts by name
|
39
41
|
#
|
40
42
|
def before_exec_command
|
@@ -19,8 +19,6 @@
|
|
19
19
|
|
20
20
|
require "chef/knife"
|
21
21
|
require "chef/knife/cloud/list_resource_command"
|
22
|
-
require_relative "cloud/vcenter_service"
|
23
|
-
require_relative "cloud/vcenter_service_helpers"
|
24
22
|
require_relative "cloud/vcenter_service_options"
|
25
23
|
|
26
24
|
class Chef
|
@@ -30,11 +28,15 @@ class Chef
|
|
30
28
|
class Cloud
|
31
29
|
# Extends the ResourceListcommand for specific vCenter
|
32
30
|
class VcenterHostList < ResourceListCommand
|
33
|
-
include VcenterServiceHelpers
|
34
31
|
include VcenterServiceOptions
|
35
32
|
|
36
33
|
banner "knife vcenter host list"
|
37
34
|
|
35
|
+
# lazy load this file as it includes vmware deps that we only want at plugin runtime
|
36
|
+
deps do
|
37
|
+
require_relative "cloud/vcenter_service"
|
38
|
+
end
|
39
|
+
|
38
40
|
# Sets up the columns for listing out and sorts by name
|
39
41
|
#
|
40
42
|
def before_exec_command
|
@@ -21,8 +21,6 @@
|
|
21
21
|
require "chef/knife"
|
22
22
|
require "chef/knife/cloud/server/create_command"
|
23
23
|
require "chef/knife/cloud/server/create_options"
|
24
|
-
require_relative "cloud/vcenter_service"
|
25
|
-
require_relative "cloud/vcenter_service_helpers"
|
26
24
|
require_relative "cloud/vcenter_service_options"
|
27
25
|
|
28
26
|
class Chef
|
@@ -32,12 +30,16 @@ class Chef
|
|
32
30
|
class Cloud
|
33
31
|
# Extends the ServerCreateCommand for specific vCenter
|
34
32
|
class VcenterVmClone < Chef::Knife::Cloud::ServerCreateCommand
|
35
|
-
include VcenterServiceHelpers
|
36
33
|
include VcenterServiceOptions
|
37
34
|
include ServerCreateOptions
|
38
35
|
|
39
36
|
banner "knife vcenter vm clone NAME (options)"
|
40
37
|
|
38
|
+
# lazy load this file as it includes vmware deps that we only want at plugin runtime
|
39
|
+
deps do
|
40
|
+
require_relative "cloud/vcenter_service"
|
41
|
+
end
|
42
|
+
|
41
43
|
option :template,
|
42
44
|
long: "--template NAME",
|
43
45
|
description: "Name of VM or template to use to clone machine from"
|
@@ -20,8 +20,6 @@
|
|
20
20
|
require "chef/knife"
|
21
21
|
require "chef/knife/cloud/server/create_command"
|
22
22
|
require "chef/knife/cloud/server/create_options"
|
23
|
-
require_relative "cloud/vcenter_service"
|
24
|
-
require_relative "cloud/vcenter_service_helpers"
|
25
23
|
require_relative "cloud/vcenter_service_options"
|
26
24
|
|
27
25
|
class Chef
|
@@ -31,12 +29,16 @@ class Chef
|
|
31
29
|
class Cloud
|
32
30
|
# Extends the ServerCreateCommand for specific vCenter
|
33
31
|
class VcenterVmCreate < Chef::Knife::Cloud::ServerCreateCommand
|
34
|
-
include VcenterServiceHelpers
|
35
32
|
include VcenterServiceOptions
|
36
33
|
include ServerCreateOptions
|
37
34
|
|
38
35
|
banner "knife vcenter vm create NAME"
|
39
36
|
|
37
|
+
# lazy load this file as it includes vmware deps that we only want at plugin runtime
|
38
|
+
deps do
|
39
|
+
require_relative "cloud/vcenter_service"
|
40
|
+
end
|
41
|
+
|
40
42
|
option :targethost,
|
41
43
|
long: "--targethost HOST",
|
42
44
|
description: "vCenter host on which the new VM should be created"
|
@@ -20,8 +20,6 @@
|
|
20
20
|
require "chef/knife"
|
21
21
|
require "chef/knife/cloud/server/delete_options"
|
22
22
|
require "chef/knife/cloud/server/delete_command"
|
23
|
-
require_relative "cloud/vcenter_service"
|
24
|
-
require_relative "cloud/vcenter_service_helpers"
|
25
23
|
require_relative "cloud/vcenter_service_options"
|
26
24
|
|
27
25
|
class Chef
|
@@ -31,10 +29,14 @@ class Chef
|
|
31
29
|
class VcenterVmDelete < ServerDeleteCommand
|
32
30
|
include ServerDeleteOptions
|
33
31
|
include VcenterServiceOptions
|
34
|
-
include VcenterServiceHelpers
|
35
32
|
|
36
33
|
banner "knife vcenter vm delete NAME [NAME] (options)"
|
37
34
|
|
35
|
+
# lazy load this file as it includes vmware deps that we only want at plugin runtime
|
36
|
+
deps do
|
37
|
+
require_relative "cloud/vcenter_service"
|
38
|
+
end
|
39
|
+
|
38
40
|
# rubocop:disable Style/GuardClause
|
39
41
|
# Validates the parameters to make sure we're good.
|
40
42
|
#
|
@@ -20,8 +20,6 @@
|
|
20
20
|
require "chef/knife"
|
21
21
|
require "chef/knife/cloud/server/list_command"
|
22
22
|
require "chef/knife/cloud/server/list_options"
|
23
|
-
require_relative "cloud/vcenter_service"
|
24
|
-
require_relative "cloud/vcenter_service_helpers"
|
25
23
|
require_relative "cloud/vcenter_service_options"
|
26
24
|
|
27
25
|
class Chef
|
@@ -31,11 +29,15 @@ class Chef
|
|
31
29
|
class Cloud
|
32
30
|
# Extends the ServerListCommand for specific vCenter
|
33
31
|
class VcenterVmList < Chef::Knife::Cloud::ServerListCommand
|
34
|
-
include VcenterServiceHelpers
|
35
32
|
include VcenterServiceOptions
|
36
33
|
|
37
34
|
banner "knife vcenter vm list"
|
38
35
|
|
36
|
+
# lazy load this file as it includes vmware deps that we only want at plugin runtime
|
37
|
+
deps do
|
38
|
+
require_relative "cloud/vcenter_service"
|
39
|
+
end
|
40
|
+
|
39
41
|
# Sets up the columns for listing out and sorts by name
|
40
42
|
#
|
41
43
|
def before_exec_command
|
@@ -20,8 +20,6 @@
|
|
20
20
|
require "chef/knife"
|
21
21
|
require "chef/knife/cloud/server/show_options"
|
22
22
|
require "chef/knife/cloud/server/show_command"
|
23
|
-
require_relative "cloud/vcenter_service"
|
24
|
-
require_relative "cloud/vcenter_service_helpers"
|
25
23
|
require_relative "cloud/vcenter_service_options"
|
26
24
|
|
27
25
|
class Chef
|
@@ -31,9 +29,14 @@ class Chef
|
|
31
29
|
class VcenterVmShow < ServerShowCommand
|
32
30
|
include ServerShowOptions
|
33
31
|
include VcenterServiceOptions
|
34
|
-
include VcenterServiceHelpers
|
35
32
|
|
36
33
|
banner "knife vcenter vm show NAME (options)"
|
34
|
+
|
35
|
+
# lazy load this file as it includes vmware deps that we only want at plugin runtime
|
36
|
+
deps do
|
37
|
+
require_relative "cloud/vcenter_service"
|
38
|
+
end
|
39
|
+
|
37
40
|
def validate_params!
|
38
41
|
if @name_args.empty?
|
39
42
|
ui.error("You must supply the name of the virtual machine to display.")
|
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: 3.0.
|
4
|
+
version: 3.0.1
|
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:
|
11
|
+
date: 2020-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: knife-cloud
|