Module | ChefConfig::Mixin::Credentials |
In: |
lib/chef-config/mixin/credentials.rb
|
Helper methods for working with credentials files.
@since 13.7 @api internal
Compute the active credentials profile name.
The lookup order is argument (from —profile), environment variable ($CHEF_PROFILE), context file (~/.chef/context), and then "default" as a fallback.
@since 14.4 @param profile [String, nil] Optional override for the active profile,
normally set via a command-line option.
@return [String]
Load and process the active credentials.
@see WorkstationConfigLoader#apply_credentials @param profile [String, nil] Optional override for the active profile,
normally set via a command-line option.
@return [void]