summaryrefslogtreecommitdiff
path: root/lib/chef/application/apply.rb
diff options
context:
space:
mode:
authortyler-ball <tball@chef.io>2019-04-22 15:24:19 -0600
committerMark Anderson <mark@chef.io>2019-05-03 21:40:19 -0700
commitc1fec9e0b6c4195be55e89d749bbffbae470539b (patch)
tree896a549a31291b26b473a11deed67dd305df2133 /lib/chef/application/apply.rb
parentdb12e959e88aae92b9414a7637007ce7263fed1a (diff)
downloadchef-c1fec9e0b6c4195be55e89d749bbffbae470539b.tar.gz
Only Chef Software binaries should enforce EULA
Signed-off-by: tyler-ball <tball@chef.io>
Diffstat (limited to 'lib/chef/application/apply.rb')
-rw-r--r--lib/chef/application/apply.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/application/apply.rb b/lib/chef/application/apply.rb
index 34f0973b40..715e0152d2 100644
--- a/lib/chef/application/apply.rb
+++ b/lib/chef/application/apply.rb
@@ -214,8 +214,9 @@ class Chef::Application::Apply < Chef::Application
end
# Get this party started
- def run
+ def run(enforce_license = false)
reconfigure
+ check_license_acceptance if enforce_license
run_application
end