module Cucumber::Chef::Utility::ChefHelper
Public Instance Methods
chef_identity()
click to toggle source
# File lib/cucumber/chef/utility/chef_helper.rb, line 45 def chef_identity result = File.join(provider_dir, "#{chef_user}.pem") ensure_directory(result) result end
chef_pre_11()
click to toggle source
# File lib/cucumber/chef/utility/chef_helper.rb, line 28 def chef_pre_11 return false if (Cucumber::Chef::Config.chef[:version].downcase == "latest") (Cucumber::Chef::Config.chef[:version].to_f < 11.0) end
chef_repo()
click to toggle source
# File lib/cucumber/chef/utility/chef_helper.rb, line 33 def chef_repo (Cucumber::Chef.locate_parent(".chef") rescue nil) end
chef_user()
click to toggle source
# File lib/cucumber/chef/utility/chef_helper.rb, line 41 def chef_user Cucumber::Chef::Config.user end
in_chef_repo?()
click to toggle source
# File lib/cucumber/chef/utility/chef_helper.rb, line 37 def in_chef_repo? ((chef_repo && File.exists?(chef_repo) && File.directory?(chef_repo)) ? true : false) end