summaryrefslogtreecommitdiff
path: root/spec/run_oc_pedant.rb
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2018-02-15 17:08:54 +0000
committerGitHub <noreply@github.com>2018-02-15 17:08:54 +0000
commitd38974beaf6fdf816de76ae4ceed6478485b5301 (patch)
tree5486aa2e835720150edaf0ad677ba6c232dafeb2 /spec/run_oc_pedant.rb
parentfdd9db047ee8b7401b947c1e60d9b996bd4fc336 (diff)
parent860cbc21165bbedf1614ebfdb2feabfd692071ff (diff)
downloadchef-zero-d38974beaf6fdf816de76ae4ceed6478485b5301.tar.gz
Merge pull request #272 from chef/tm/upgrade
Upgrade deps and enable Expeditor
Diffstat (limited to 'spec/run_oc_pedant.rb')
-rw-r--r--spec/run_oc_pedant.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/run_oc_pedant.rb b/spec/run_oc_pedant.rb
index 0ee94b5..068cb4d 100644
--- a/spec/run_oc_pedant.rb
+++ b/spec/run_oc_pedant.rb
@@ -49,12 +49,12 @@ def start_cheffs_server(chef_repo_path)
require "chef/chef_fs/chef_fs_data_store"
require "chef_zero/server"
- Dir.mkdir(chef_repo_path) if !File.exists?(chef_repo_path)
+ Dir.mkdir(chef_repo_path) if !File.exist?(chef_repo_path)
# 11.6 and below had a bug where it couldn't create the repo children automatically
if Chef::VERSION.to_f < 11.8
%w{clients cookbooks data_bags environments nodes roles users}.each do |child|
- Dir.mkdir("#{chef_repo_path}/#{child}") if !File.exists?("#{chef_repo_path}/#{child}")
+ Dir.mkdir("#{chef_repo_path}/#{child}") if !File.exist?("#{chef_repo_path}/#{child}")
end
end