class ChefConfig::WorkstationConfigLoader
def extract_key(key_value, config_path, config_contents)
def extract_key(key_value, config_path, config_contents) if key_value.start_with?("-----BEGIN RSA PRIVATE KEY-----") Config.send(config_contents, key_value) else abs_path = Pathname.new(key_value).expand_path(home_chef_dir) Config.send(config_path, abs_path) end end