summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/breakpoint.rb2
-rw-r--r--lib/chef/resource/chef_client_cron.rb2
-rw-r--r--lib/chef/resource/chef_client_scheduled_task.rb2
-rw-r--r--lib/chef/resource/chef_client_systemd_timer.rb2
-rw-r--r--lib/chef/resource/chef_handler.rb2
-rw-r--r--lib/chef/resource/chef_sleep.rb2
-rw-r--r--lib/chef/resource/cookbook_file.rb2
-rw-r--r--lib/chef/resource/cron/cron_d.rb1
-rw-r--r--lib/chef/resource/dnf_package.rb2
-rw-r--r--lib/chef/resource/dsc_resource.rb1
-rw-r--r--lib/chef/resource/dsc_script.rb2
-rw-r--r--lib/chef/resource/execute.rb2
-rw-r--r--lib/chef/resource/gem_package.rb2
-rw-r--r--lib/chef/resource/homebrew_package.rb2
-rw-r--r--lib/chef/resource/locale.rb2
-rw-r--r--lib/chef/resource/notify_group.rb1
-rw-r--r--lib/chef/resource/ohai.rb2
-rw-r--r--lib/chef/resource/reboot.rb2
-rw-r--r--lib/chef/resource/rhsm_register.rb2
-rw-r--r--lib/chef/resource/ruby_block.rb2
-rw-r--r--lib/chef/resource/service.rb2
-rw-r--r--lib/chef/resource/ssh_known_hosts_entry.rb2
-rw-r--r--lib/chef/resource/systemd_unit.rb2
-rw-r--r--lib/chef/resource/template.rb2
-rw-r--r--lib/chef/resource/windows_ad_join.rb2
-rw-r--r--lib/chef/resource/windows_certificate.rb2
-rw-r--r--lib/chef/resource/windows_workgroup.rb2
-rw-r--r--lib/chef/resource/yum_package.rb2
28 files changed, 25 insertions, 28 deletions
diff --git a/lib/chef/resource/breakpoint.rb b/lib/chef/resource/breakpoint.rb
index 4c03579136..0e46d485d6 100644
--- a/lib/chef/resource/breakpoint.rb
+++ b/lib/chef/resource/breakpoint.rb
@@ -17,7 +17,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/chef_client_cron.rb b/lib/chef/resource/chef_client_cron.rb
index a656027492..9f0286c579 100644
--- a/lib/chef/resource/chef_client_cron.rb
+++ b/lib/chef/resource/chef_client_cron.rb
@@ -15,7 +15,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
require_relative "helpers/cron_validations"
require "digest/md5" unless defined?(Digest::MD5)
diff --git a/lib/chef/resource/chef_client_scheduled_task.rb b/lib/chef/resource/chef_client_scheduled_task.rb
index c8c97bd865..3450ff2329 100644
--- a/lib/chef/resource/chef_client_scheduled_task.rb
+++ b/lib/chef/resource/chef_client_scheduled_task.rb
@@ -15,7 +15,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist"
class Chef
class Resource
diff --git a/lib/chef/resource/chef_client_systemd_timer.rb b/lib/chef/resource/chef_client_systemd_timer.rb
index 432f29703d..443d0e6ce8 100644
--- a/lib/chef/resource/chef_client_systemd_timer.rb
+++ b/lib/chef/resource/chef_client_systemd_timer.rb
@@ -15,7 +15,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/chef_handler.rb b/lib/chef/resource/chef_handler.rb
index 9666f8e656..cceb04249d 100644
--- a/lib/chef/resource/chef_handler.rb
+++ b/lib/chef/resource/chef_handler.rb
@@ -16,7 +16,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/chef_sleep.rb b/lib/chef/resource/chef_sleep.rb
index 501f8fbfa0..cb3da0df33 100644
--- a/lib/chef/resource/chef_sleep.rb
+++ b/lib/chef/resource/chef_sleep.rb
@@ -15,7 +15,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/cookbook_file.rb b/lib/chef/resource/cookbook_file.rb
index c0e33f80fb..057bd3be6b 100644
--- a/lib/chef/resource/cookbook_file.rb
+++ b/lib/chef/resource/cookbook_file.rb
@@ -21,7 +21,7 @@
require_relative "file"
require_relative "../provider/cookbook_file"
require_relative "../mixin/securable"
-require "chef-utils"
+require "chef-utils/dist"
class Chef
class Resource
diff --git a/lib/chef/resource/cron/cron_d.rb b/lib/chef/resource/cron/cron_d.rb
index 681a923acc..8276fb8587 100644
--- a/lib/chef/resource/cron/cron_d.rb
+++ b/lib/chef/resource/cron/cron_d.rb
@@ -18,7 +18,6 @@
require_relative "../../resource"
require_relative "../helpers/cron_validations"
require "shellwords" unless defined?(Shellwords)
-require "chef-utils"
class Chef
class Resource
diff --git a/lib/chef/resource/dnf_package.rb b/lib/chef/resource/dnf_package.rb
index 53f05f280d..03523c614d 100644
--- a/lib/chef/resource/dnf_package.rb
+++ b/lib/chef/resource/dnf_package.rb
@@ -18,7 +18,7 @@
require_relative "package"
require_relative "../mixin/which"
require_relative "../mixin/shell_out"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/dsc_resource.rb b/lib/chef/resource/dsc_resource.rb
index 2aaf9c16a4..679deef47b 100644
--- a/lib/chef/resource/dsc_resource.rb
+++ b/lib/chef/resource/dsc_resource.rb
@@ -16,7 +16,6 @@
# limitations under the License.
#
require_relative "../dsl/powershell"
-require "chef-utils"
class Chef
class Resource
diff --git a/lib/chef/resource/dsc_script.rb b/lib/chef/resource/dsc_script.rb
index 5b574e3606..cf35714931 100644
--- a/lib/chef/resource/dsc_script.rb
+++ b/lib/chef/resource/dsc_script.rb
@@ -19,7 +19,7 @@
require_relative "../resource"
require_relative "../exceptions"
require_relative "../dsl/powershell"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb
index dfcb19d147..a5fc40676e 100644
--- a/lib/chef/resource/execute.rb
+++ b/lib/chef/resource/execute.rb
@@ -18,7 +18,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/gem_package.rb b/lib/chef/resource/gem_package.rb
index 8154b61ab3..8832aedd90 100644
--- a/lib/chef/resource/gem_package.rb
+++ b/lib/chef/resource/gem_package.rb
@@ -17,7 +17,7 @@
#
require_relative "package"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/homebrew_package.rb b/lib/chef/resource/homebrew_package.rb
index 6113bf54b0..889a87cd81 100644
--- a/lib/chef/resource/homebrew_package.rb
+++ b/lib/chef/resource/homebrew_package.rb
@@ -19,7 +19,7 @@
require_relative "../provider/package"
require_relative "package"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/locale.rb b/lib/chef/resource/locale.rb
index f6878ba894..25397f0301 100644
--- a/lib/chef/resource/locale.rb
+++ b/lib/chef/resource/locale.rb
@@ -16,7 +16,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/notify_group.rb b/lib/chef/resource/notify_group.rb
index dc0ab71496..9a1edf3eb8 100644
--- a/lib/chef/resource/notify_group.rb
+++ b/lib/chef/resource/notify_group.rb
@@ -15,7 +15,6 @@
#
require_relative "../resource"
-require "chef-utils"
class Chef
class Resource
diff --git a/lib/chef/resource/ohai.rb b/lib/chef/resource/ohai.rb
index cfdf636299..303e24d94f 100644
--- a/lib/chef/resource/ohai.rb
+++ b/lib/chef/resource/ohai.rb
@@ -19,7 +19,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
require "ohai" unless defined?(Ohai::System)
class Chef
diff --git a/lib/chef/resource/reboot.rb b/lib/chef/resource/reboot.rb
index 93ca2cdd5f..0faaf19462 100644
--- a/lib/chef/resource/reboot.rb
+++ b/lib/chef/resource/reboot.rb
@@ -17,7 +17,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/rhsm_register.rb b/lib/chef/resource/rhsm_register.rb
index c12b96106c..e960e0a0f0 100644
--- a/lib/chef/resource/rhsm_register.rb
+++ b/lib/chef/resource/rhsm_register.rb
@@ -16,7 +16,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist"
require "shellwords" unless defined?(Shellwords)
class Chef
diff --git a/lib/chef/resource/ruby_block.rb b/lib/chef/resource/ruby_block.rb
index 1b738a6507..af98714100 100644
--- a/lib/chef/resource/ruby_block.rb
+++ b/lib/chef/resource/ruby_block.rb
@@ -19,7 +19,7 @@
require_relative "../resource"
require_relative "../provider/ruby_block"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/service.rb b/lib/chef/resource/service.rb
index f2e02b2b8d..73a3c05acd 100644
--- a/lib/chef/resource/service.rb
+++ b/lib/chef/resource/service.rb
@@ -20,7 +20,7 @@
require "chef-utils/dsl/service" unless defined?(ChefUtils::DSL::Service)
require_relative "../resource"
require "shellwords" unless defined?(Shellwords)
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/ssh_known_hosts_entry.rb b/lib/chef/resource/ssh_known_hosts_entry.rb
index f810ac9604..3d812b918b 100644
--- a/lib/chef/resource/ssh_known_hosts_entry.rb
+++ b/lib/chef/resource/ssh_known_hosts_entry.rb
@@ -18,7 +18,7 @@
# limitations under the License.
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/systemd_unit.rb b/lib/chef/resource/systemd_unit.rb
index 7ddf71069c..f62f2b17aa 100644
--- a/lib/chef/resource/systemd_unit.rb
+++ b/lib/chef/resource/systemd_unit.rb
@@ -17,7 +17,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
require "iniparse"
class Chef
diff --git a/lib/chef/resource/template.rb b/lib/chef/resource/template.rb
index 51f0613a21..b1f6342ec8 100644
--- a/lib/chef/resource/template.rb
+++ b/lib/chef/resource/template.rb
@@ -20,7 +20,7 @@
require_relative "file"
require_relative "../mixin/securable"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/windows_ad_join.rb b/lib/chef/resource/windows_ad_join.rb
index 2a8250d012..b86fa57c74 100644
--- a/lib/chef/resource/windows_ad_join.rb
+++ b/lib/chef/resource/windows_ad_join.rb
@@ -16,7 +16,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/windows_certificate.rb b/lib/chef/resource/windows_certificate.rb
index 624ba4e795..5620176321 100644
--- a/lib/chef/resource/windows_certificate.rb
+++ b/lib/chef/resource/windows_certificate.rb
@@ -23,7 +23,7 @@ module Win32
autoload :Certstore, "win32-certstore" if Chef::Platform.windows?
end
autoload :OpenSSL, "openssl"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/windows_workgroup.rb b/lib/chef/resource/windows_workgroup.rb
index 244f622861..f06dca689b 100644
--- a/lib/chef/resource/windows_workgroup.rb
+++ b/lib/chef/resource/windows_workgroup.rb
@@ -16,7 +16,7 @@
#
require_relative "../resource"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource
diff --git a/lib/chef/resource/yum_package.rb b/lib/chef/resource/yum_package.rb
index 75c9c5e152..6ded3d5edb 100644
--- a/lib/chef/resource/yum_package.rb
+++ b/lib/chef/resource/yum_package.rb
@@ -17,7 +17,7 @@
#
require_relative "package"
-require "chef-utils"
+require "chef-utils/dist/infra"
class Chef
class Resource