summaryrefslogtreecommitdiff
path: root/lib/chef/run_list
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/run_list
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/run_list')
-rw-r--r--lib/chef/run_list/run_list_expansion.rb10
-rw-r--r--lib/chef/run_list/versioned_recipe_list.rb4
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/chef/run_list/run_list_expansion.rb b/lib/chef/run_list/run_list_expansion.rb
index 97422bee16..9ddcdf7373 100644
--- a/lib/chef/run_list/run_list_expansion.rb
+++ b/lib/chef/run_list/run_list_expansion.rb
@@ -16,13 +16,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require "chef/mash"
+require_relative "../mash"
-require "chef/mixin/deep_merge"
+require_relative "../mixin/deep_merge"
-require "chef/role"
-require "chef/server_api"
-require "chef/json_compat"
+require_relative "../role"
+require_relative "../server_api"
+require_relative "../json_compat"
class Chef
class RunList
diff --git a/lib/chef/run_list/versioned_recipe_list.rb b/lib/chef/run_list/versioned_recipe_list.rb
index e2933d45cd..182c749b46 100644
--- a/lib/chef/run_list/versioned_recipe_list.rb
+++ b/lib/chef/run_list/versioned_recipe_list.rb
@@ -15,8 +15,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-require "chef/version_class"
-require "chef/version_constraint"
+require_relative "../version_class"
+require_relative "../version_constraint"
# Why does this class exist?
# Why did we not just modify RunList/RunListItem?