summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-05-15 19:31:40 -0700
committerTim Smith <tsmith@chef.io>2019-05-15 19:31:40 -0700
commita84fc9d81f6b8d0f0b5344369c8f4b5f6c741676 (patch)
tree7eaab271127cd54fcf18be50f6106f841cea8248
parenteb962e07ddd302e462c70294721aaffa9bf5fee7 (diff)
downloadchef-a84fc9d81f6b8d0f0b5344369c8f4b5f6c741676.tar.gz
Add license CLI options to chef-apply command
You could accept the license interactively but you could not do it via the CLI flag Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/application/apply.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/application/apply.rb b/lib/chef/application/apply.rb
index 40544f753a..275fe19f93 100644
--- a/lib/chef/application/apply.rb
+++ b/lib/chef/application/apply.rb
@@ -27,8 +27,10 @@ require "tempfile"
require_relative "../providers"
require_relative "../resources"
require_relative "../dist"
+require "license_acceptance/cli_flags/mixlib_cli"
class Chef::Application::Apply < Chef::Application
+ include LicenseAcceptance::CLIFlags::MixlibCLI
banner "Usage: chef-apply [RECIPE_FILE | -e RECIPE_TEXT | -s] [OPTIONS]"