Module ChefConfig::Mixin::Credentials
In: lib/chef-config/mixin/credentials.rb

Helper methods for working with credentials files.

@since 13.7 @api internal

Methods

Public Instance methods

Compute the path to the credentials file.

@since 14.4 @return [String]

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]

Load and parse the credentials file.

Returns `nil` if the credentials file is unavailable.

@since 14.4 @return [String, nil]

[Validate]