# File lib/chef-config/mixin/credentials.rb, line 38 def credentials_profile(profile = nil) context_file = PathHelper.home(".chef", "context").freeze if !profile.nil? profile elsif ENV.include?("CHEF_PROFILE") ENV["CHEF_PROFILE"] elsif File.file?(context_file) File.read(context_file).strip else "default" end end