summaryrefslogtreecommitdiff
path: root/lib/chef/win32/api
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-05-08 17:03:26 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-05-08 17:03:26 -0700
commitbc7687e56763cedbd010cfd566aa2fc0c53bb194 (patch)
tree3d3e3eec51c847f23dc2955f9d058777bdea9a91 /lib/chef/win32/api
parente793c825c857af87e745a8af479af71522ff20db (diff)
downloadchef-bc7687e56763cedbd010cfd566aa2fc0c53bb194.tar.gz
Convert require to require_relative
This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/win32/api')
-rw-r--r--lib/chef/win32/api/crypto.rb2
-rw-r--r--lib/chef/win32/api/error.rb2
-rw-r--r--lib/chef/win32/api/file.rb8
-rw-r--r--lib/chef/win32/api/installer.rb6
-rw-r--r--lib/chef/win32/api/memory.rb2
-rw-r--r--lib/chef/win32/api/net.rb4
-rw-r--r--lib/chef/win32/api/process.rb2
-rw-r--r--lib/chef/win32/api/psapi.rb2
-rw-r--r--lib/chef/win32/api/registry.rb2
-rw-r--r--lib/chef/win32/api/security.rb2
-rw-r--r--lib/chef/win32/api/synchronization.rb2
-rw-r--r--lib/chef/win32/api/system.rb2
-rw-r--r--lib/chef/win32/api/unicode.rb2
13 files changed, 19 insertions, 19 deletions
diff --git a/lib/chef/win32/api/crypto.rb b/lib/chef/win32/api/crypto.rb
index 0abb908622..a2d73b0381 100644
--- a/lib/chef/win32/api/crypto.rb
+++ b/lib/chef/win32/api/crypto.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "chef/win32/api"
+require_relative ""
class Chef
module ReservedNames::Win32
diff --git a/lib/chef/win32/api/error.rb b/lib/chef/win32/api/error.rb
index e37468c609..a4ac7e4a13 100644
--- a/lib/chef/win32/api/error.rb
+++ b/lib/chef/win32/api/error.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "chef/win32/api"
+require_relative ""
class Chef
module ReservedNames::Win32
diff --git a/lib/chef/win32/api/file.rb b/lib/chef/win32/api/file.rb
index a239671557..76153a01a5 100644
--- a/lib/chef/win32/api/file.rb
+++ b/lib/chef/win32/api/file.rb
@@ -17,10 +17,10 @@
# limitations under the License.
#
-require "chef/win32/api"
-require "chef/win32/api/security"
-require "chef/win32/api/system"
-require "chef/win32/unicode"
+require_relative ""
+require_relative "security"
+require_relative "system"
+require_relative "../unicode"
class Chef
module ReservedNames::Win32
diff --git a/lib/chef/win32/api/installer.rb b/lib/chef/win32/api/installer.rb
index 46930b65fc..bb0215255a 100644
--- a/lib/chef/win32/api/installer.rb
+++ b/lib/chef/win32/api/installer.rb
@@ -16,9 +16,9 @@
# limitations under the License.
#
-require "chef/exceptions"
-require "chef/win32/api"
-require "chef/win32/error"
+require_relative "../../exceptions"
+require_relative ""
+require_relative "../error"
require "pathname"
class Chef
diff --git a/lib/chef/win32/api/memory.rb b/lib/chef/win32/api/memory.rb
index a00ac5fec8..4738ef4be6 100644
--- a/lib/chef/win32/api/memory.rb
+++ b/lib/chef/win32/api/memory.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "chef/win32/api"
+require_relative ""
class Chef
module ReservedNames::Win32
diff --git a/lib/chef/win32/api/net.rb b/lib/chef/win32/api/net.rb
index 8c624866d4..f339a3f12d 100644
--- a/lib/chef/win32/api/net.rb
+++ b/lib/chef/win32/api/net.rb
@@ -16,8 +16,8 @@
# limitations under the License.
#
-require "chef/win32/api"
-require "chef/win32/unicode"
+require_relative ""
+require_relative "../unicode"
class Chef
module ReservedNames::Win32
diff --git a/lib/chef/win32/api/process.rb b/lib/chef/win32/api/process.rb
index 3568b7e76c..fc06d805d6 100644
--- a/lib/chef/win32/api/process.rb
+++ b/lib/chef/win32/api/process.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "chef/win32/api"
+require_relative ""
class Chef
module ReservedNames::Win32
diff --git a/lib/chef/win32/api/psapi.rb b/lib/chef/win32/api/psapi.rb
index 9deb68d92e..13c83f0545 100644
--- a/lib/chef/win32/api/psapi.rb
+++ b/lib/chef/win32/api/psapi.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "chef/win32/api"
+require_relative ""
class Chef
module ReservedNames::Win32
diff --git a/lib/chef/win32/api/registry.rb b/lib/chef/win32/api/registry.rb
index dec25118a3..d9ea074c49 100644
--- a/lib/chef/win32/api/registry.rb
+++ b/lib/chef/win32/api/registry.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "chef/win32/api"
+require_relative ""
class Chef
module ReservedNames::Win32
diff --git a/lib/chef/win32/api/security.rb b/lib/chef/win32/api/security.rb
index 5c3dd69c3e..e35fbbf46d 100644
--- a/lib/chef/win32/api/security.rb
+++ b/lib/chef/win32/api/security.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "chef/win32/api"
+require_relative ""
class Chef
module ReservedNames::Win32
diff --git a/lib/chef/win32/api/synchronization.rb b/lib/chef/win32/api/synchronization.rb
index 9b5d5c6ab9..5543f68b94 100644
--- a/lib/chef/win32/api/synchronization.rb
+++ b/lib/chef/win32/api/synchronization.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "chef/win32/api"
+require_relative ""
class Chef
module ReservedNames::Win32
diff --git a/lib/chef/win32/api/system.rb b/lib/chef/win32/api/system.rb
index 732ed073e6..70a3d78e42 100644
--- a/lib/chef/win32/api/system.rb
+++ b/lib/chef/win32/api/system.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "chef/win32/api"
+require_relative ""
class Chef
module ReservedNames::Win32
diff --git a/lib/chef/win32/api/unicode.rb b/lib/chef/win32/api/unicode.rb
index 21ddde2865..ae68671a6a 100644
--- a/lib/chef/win32/api/unicode.rb
+++ b/lib/chef/win32/api/unicode.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "chef/win32/api"
+require_relative ""
class Chef
module ReservedNames::Win32