chef-cli 5.4.2 → 5.5.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/lib/chef-cli/command/base.rb +11 -0
- data/lib/chef-cli/command/clean_policy_cookbooks.rb +0 -11
- data/lib/chef-cli/command/clean_policy_revisions.rb +0 -11
- data/lib/chef-cli/command/delete_policy.rb +0 -11
- data/lib/chef-cli/command/delete_policy_group.rb +0 -11
- data/lib/chef-cli/command/diff.rb +0 -11
- data/lib/chef-cli/command/install.rb +0 -11
- data/lib/chef-cli/command/push.rb +0 -11
- data/lib/chef-cli/command/push_archive.rb +0 -11
- data/lib/chef-cli/command/show_policy.rb +0 -11
- data/lib/chef-cli/command/undelete.rb +0 -11
- data/lib/chef-cli/skeletons/code_generator/templates/default/kitchen_policyfile.yml.erb +2 -3
- data/lib/chef-cli/version.rb +1 -1
- data/spec/unit/command/base_spec.rb +5 -0
- data/spec/unit/command/generator_commands/cookbook_spec.rb +2 -3
- 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: 4fb98307695292507e558f981b1fef57ac24d3bfa3f01ecf5c9359e7726cf21c
|
|
4
|
+
data.tar.gz: cffb65b17d8e5c267a8e26d48ca419c5af671a640f5735a2fc2192644506e3d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 878b49ffa71394138f7055ddbae1376ab91276933657dacc674d646c0f1a481c92c48c8f3e2c134eabdda5e731f6b214691a38c79cfa3c72027730c378deada4
|
|
7
|
+
data.tar.gz: e587bf24ba23f52dc3ec008efbaeb2c628811e4980d74ecc23eb51e108ab700c352cdb9800189d49470644eb2abf36cfff1f00562e4a2dacc01240a7f83b5968
|
|
@@ -42,6 +42,17 @@ module ChefCLI
|
|
|
42
42
|
description: "Show #{ChefCLI::Dist::PRODUCT} version",
|
|
43
43
|
boolean: true
|
|
44
44
|
|
|
45
|
+
option :debug,
|
|
46
|
+
short: "-D",
|
|
47
|
+
long: "--debug",
|
|
48
|
+
description: "Enable stacktraces and other debug output",
|
|
49
|
+
default: false
|
|
50
|
+
|
|
51
|
+
option :config_file,
|
|
52
|
+
short: "-c CONFIG_FILE",
|
|
53
|
+
long: "--config CONFIG_FILE",
|
|
54
|
+
description: "Path to configuration file"
|
|
55
|
+
|
|
45
56
|
def initialize
|
|
46
57
|
super
|
|
47
58
|
end
|
|
@@ -43,17 +43,6 @@ module ChefCLI
|
|
|
43
43
|
|
|
44
44
|
BANNER
|
|
45
45
|
|
|
46
|
-
option :config_file,
|
|
47
|
-
short: "-c CONFIG_FILE",
|
|
48
|
-
long: "--config CONFIG_FILE",
|
|
49
|
-
description: "Path to configuration file"
|
|
50
|
-
|
|
51
|
-
option :debug,
|
|
52
|
-
short: "-D",
|
|
53
|
-
long: "--debug",
|
|
54
|
-
description: "Enable stacktraces and other debug output",
|
|
55
|
-
default: false
|
|
56
|
-
|
|
57
46
|
include Configurable
|
|
58
47
|
|
|
59
48
|
attr_accessor :ui
|
|
@@ -42,17 +42,6 @@ module ChefCLI
|
|
|
42
42
|
|
|
43
43
|
BANNER
|
|
44
44
|
|
|
45
|
-
option :config_file,
|
|
46
|
-
short: "-c CONFIG_FILE",
|
|
47
|
-
long: "--config CONFIG_FILE",
|
|
48
|
-
description: "Path to configuration file"
|
|
49
|
-
|
|
50
|
-
option :debug,
|
|
51
|
-
short: "-D",
|
|
52
|
-
long: "--debug",
|
|
53
|
-
description: "Enable stacktraces and other debug output",
|
|
54
|
-
default: false
|
|
55
|
-
|
|
56
45
|
include Configurable
|
|
57
46
|
|
|
58
47
|
attr_accessor :ui
|
|
@@ -42,17 +42,6 @@ module ChefCLI
|
|
|
42
42
|
|
|
43
43
|
BANNER
|
|
44
44
|
|
|
45
|
-
option :config_file,
|
|
46
|
-
short: "-c CONFIG_FILE",
|
|
47
|
-
long: "--config CONFIG_FILE",
|
|
48
|
-
description: "Path to configuration file"
|
|
49
|
-
|
|
50
|
-
option :debug,
|
|
51
|
-
short: "-D",
|
|
52
|
-
long: "--debug",
|
|
53
|
-
description: "Enable stacktraces and other debug output",
|
|
54
|
-
default: false
|
|
55
|
-
|
|
56
45
|
include Configurable
|
|
57
46
|
|
|
58
47
|
attr_accessor :ui
|
|
@@ -42,17 +42,6 @@ module ChefCLI
|
|
|
42
42
|
|
|
43
43
|
BANNER
|
|
44
44
|
|
|
45
|
-
option :config_file,
|
|
46
|
-
short: "-c CONFIG_FILE",
|
|
47
|
-
long: "--config CONFIG_FILE",
|
|
48
|
-
description: "Path to configuration file"
|
|
49
|
-
|
|
50
|
-
option :debug,
|
|
51
|
-
short: "-D",
|
|
52
|
-
long: "--debug",
|
|
53
|
-
description: "Enable stacktraces and other debug output",
|
|
54
|
-
default: false
|
|
55
|
-
|
|
56
45
|
include Configurable
|
|
57
46
|
|
|
58
47
|
attr_accessor :ui
|
|
@@ -86,17 +86,6 @@ module ChefCLI
|
|
|
86
86
|
default: true,
|
|
87
87
|
boolean: true
|
|
88
88
|
|
|
89
|
-
option :config_file,
|
|
90
|
-
short: "-c CONFIG_FILE",
|
|
91
|
-
long: "--config CONFIG_FILE",
|
|
92
|
-
description: "Path to configuration file."
|
|
93
|
-
|
|
94
|
-
option :debug,
|
|
95
|
-
short: "-D",
|
|
96
|
-
long: "--debug",
|
|
97
|
-
description: "Enable stacktraces and other debug output.",
|
|
98
|
-
default: false
|
|
99
|
-
|
|
100
89
|
attr_accessor :ui
|
|
101
90
|
|
|
102
91
|
attr_reader :old_base
|
|
@@ -46,17 +46,6 @@ module ChefCLI
|
|
|
46
46
|
|
|
47
47
|
E
|
|
48
48
|
|
|
49
|
-
option :config_file,
|
|
50
|
-
short: "-c CONFIG_FILE",
|
|
51
|
-
long: "--config CONFIG_FILE",
|
|
52
|
-
description: "Path to configuration file"
|
|
53
|
-
|
|
54
|
-
option :debug,
|
|
55
|
-
short: "-D",
|
|
56
|
-
long: "--debug",
|
|
57
|
-
description: "Enable stacktraces and other debug output",
|
|
58
|
-
default: false
|
|
59
|
-
|
|
60
49
|
attr_reader :policyfile_relative_path
|
|
61
50
|
|
|
62
51
|
attr_accessor :ui
|
|
@@ -44,17 +44,6 @@ module ChefCLI
|
|
|
44
44
|
|
|
45
45
|
E
|
|
46
46
|
|
|
47
|
-
option :config_file,
|
|
48
|
-
short: "-c CONFIG_FILE",
|
|
49
|
-
long: "--config CONFIG_FILE",
|
|
50
|
-
description: "Path to configuration file"
|
|
51
|
-
|
|
52
|
-
option :debug,
|
|
53
|
-
short: "-D",
|
|
54
|
-
long: "--debug",
|
|
55
|
-
description: "Enable stacktraces and other debug output",
|
|
56
|
-
default: false
|
|
57
|
-
|
|
58
47
|
attr_reader :policyfile_relative_path
|
|
59
48
|
attr_reader :policy_group
|
|
60
49
|
|
|
@@ -43,17 +43,6 @@ module ChefCLI
|
|
|
43
43
|
Options:
|
|
44
44
|
E
|
|
45
45
|
|
|
46
|
-
option :config_file,
|
|
47
|
-
short: "-c CONFIG_FILE",
|
|
48
|
-
long: "--config CONFIG_FILE",
|
|
49
|
-
description: "Path to configuration file"
|
|
50
|
-
|
|
51
|
-
option :debug,
|
|
52
|
-
short: "-D",
|
|
53
|
-
long: "--debug",
|
|
54
|
-
description: "Enable stacktraces and other debug output",
|
|
55
|
-
default: false
|
|
56
|
-
|
|
57
46
|
attr_accessor :ui
|
|
58
47
|
|
|
59
48
|
attr_reader :policy_group
|
|
@@ -58,17 +58,6 @@ module ChefCLI
|
|
|
58
58
|
default: true,
|
|
59
59
|
boolean: true
|
|
60
60
|
|
|
61
|
-
option :config_file,
|
|
62
|
-
short: "-c CONFIG_FILE",
|
|
63
|
-
long: "--config CONFIG_FILE",
|
|
64
|
-
description: "Path to configuration file"
|
|
65
|
-
|
|
66
|
-
option :debug,
|
|
67
|
-
short: "-D",
|
|
68
|
-
long: "--debug",
|
|
69
|
-
description: "Enable stacktraces and other debug output",
|
|
70
|
-
default: false
|
|
71
|
-
|
|
72
61
|
include Configurable
|
|
73
62
|
|
|
74
63
|
attr_accessor :ui
|
|
@@ -63,17 +63,6 @@ module ChefCLI
|
|
|
63
63
|
long: "--id ID",
|
|
64
64
|
description: "Undo the delete operation with the given ID"
|
|
65
65
|
|
|
66
|
-
option :config_file,
|
|
67
|
-
short: "-c CONFIG_FILE",
|
|
68
|
-
long: "--config CONFIG_FILE",
|
|
69
|
-
description: "Path to configuration file"
|
|
70
|
-
|
|
71
|
-
option :debug,
|
|
72
|
-
short: "-D",
|
|
73
|
-
long: "--debug",
|
|
74
|
-
description: "Enable stacktraces and other debug output",
|
|
75
|
-
default: false
|
|
76
|
-
|
|
77
66
|
include Configurable
|
|
78
67
|
|
|
79
68
|
attr_accessor :ui
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
driver:
|
|
3
3
|
name: vagrant
|
|
4
4
|
|
|
5
|
-
## The forwarded_port port feature lets you connect to ports on the VM guest
|
|
6
|
-
## localhost on the host.
|
|
5
|
+
## The forwarded_port port feature lets you connect to ports on the VM guest
|
|
6
|
+
## via localhost on the host.
|
|
7
7
|
## see also: https://www.vagrantup.com/docs/networking/forwarded_ports
|
|
8
8
|
|
|
9
9
|
# network:
|
|
@@ -29,4 +29,3 @@ suites:
|
|
|
29
29
|
verifier:
|
|
30
30
|
inspec_tests:
|
|
31
31
|
- test/integration/default
|
|
32
|
-
attributes:
|
data/lib/chef-cli/version.rb
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
#
|
|
17
17
|
|
|
18
18
|
require "spec_helper"
|
|
19
|
+
require "chef-cli/command/base"
|
|
19
20
|
|
|
20
21
|
describe ChefCLI::Command::Base do
|
|
21
22
|
class TestCommand < ChefCLI::Command::Base
|
|
@@ -126,6 +127,8 @@ describe ChefCLI::Command::Base do
|
|
|
126
127
|
use me please
|
|
127
128
|
-a, --arg ARG An option with a required argument
|
|
128
129
|
--chef-license ACCEPTANCE Accept the license for this product and any contained products ('accept', 'accept-no-persist', or 'accept-silent')
|
|
130
|
+
-c, --config CONFIG_FILE Path to configuration file
|
|
131
|
+
-D, --debug Enable stacktraces and other debug output
|
|
129
132
|
-h, --help Show this message
|
|
130
133
|
-u, --user If the user exists
|
|
131
134
|
-v, --version Show #{ChefCLI::Dist::PRODUCT} version
|
|
@@ -147,6 +150,8 @@ describe ChefCLI::Command::Base do
|
|
|
147
150
|
use me please
|
|
148
151
|
-a, --arg ARG An option with a required argument
|
|
149
152
|
--chef-license ACCEPTANCE Accept the license for this product and any contained products ('accept', 'accept-no-persist', or 'accept-silent')
|
|
153
|
+
-c, --config CONFIG_FILE Path to configuration file
|
|
154
|
+
-D, --debug Enable stacktraces and other debug output
|
|
150
155
|
-h, --help Show this message
|
|
151
156
|
-u, --user If the user exists
|
|
152
157
|
-v, --version Show #{ChefCLI::Dist::PRODUCT} version
|
|
@@ -373,8 +373,8 @@ describe ChefCLI::Command::GeneratorCommands::Cookbook do
|
|
|
373
373
|
driver:
|
|
374
374
|
name: vagrant
|
|
375
375
|
|
|
376
|
-
## The forwarded_port port feature lets you connect to ports on the VM guest
|
|
377
|
-
## localhost on the host.
|
|
376
|
+
## The forwarded_port port feature lets you connect to ports on the VM guest
|
|
377
|
+
## via localhost on the host.
|
|
378
378
|
## see also: https://www.vagrantup.com/docs/networking/forwarded_ports
|
|
379
379
|
|
|
380
380
|
# network:
|
|
@@ -400,7 +400,6 @@ describe ChefCLI::Command::GeneratorCommands::Cookbook do
|
|
|
400
400
|
verifier:
|
|
401
401
|
inspec_tests:
|
|
402
402
|
- test/integration/default
|
|
403
|
-
attributes:
|
|
404
403
|
KITCHEN_YML
|
|
405
404
|
end
|
|
406
405
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chef-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chef Software, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mixlib-cli
|