Exception: AwsLocalConfigParser::NoMatchingProfile
- Inherits:
-
StandardError
- Object
- StandardError
- AwsLocalConfigParser::NoMatchingProfile
- Defined in:
- lib/aws_local_config_parser/errors.rb
Instance Attribute Summary collapse
-
#config_path ⇒ Object
readonly
Returns the value of attribute config_path.
-
#profile_name ⇒ Object
readonly
Returns the value of attribute profile_name.
Instance Method Summary collapse
-
#initialize(profile_name:, config_path:) ⇒ NoMatchingProfile
constructor
A new instance of NoMatchingProfile.
- #message ⇒ Object
Constructor Details
#initialize(profile_name:, config_path:) ⇒ NoMatchingProfile
Returns a new instance of NoMatchingProfile.
20 21 22 23 24 |
# File 'lib/aws_local_config_parser/errors.rb', line 20 def initialize(profile_name:, config_path:) @profile_name = profile_name @config_path = config_path super(msg: ) end |
Instance Attribute Details
#config_path ⇒ Object (readonly)
Returns the value of attribute config_path.
18 19 20 |
# File 'lib/aws_local_config_parser/errors.rb', line 18 def config_path @config_path end |
#profile_name ⇒ Object (readonly)
Returns the value of attribute profile_name.
18 19 20 |
# File 'lib/aws_local_config_parser/errors.rb', line 18 def profile_name @profile_name end |
Instance Method Details
#message ⇒ Object
26 27 28 |
# File 'lib/aws_local_config_parser/errors.rb', line 26 def "No matching profile, '#{profile_name}', in '#{config_path}'." end |