Exception: AwsLocalConfigParser::NoAwsConfig

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aws_local_config_parser/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config_path:) ⇒ NoAwsConfig

Returns a new instance of NoAwsConfig.



7
8
9
10
# File 'lib/aws_local_config_parser/errors.rb', line 7

def initialize(config_path:)
  @config_path = config_path
  super(msg: message)
end

Instance Attribute Details

#config_pathObject (readonly)

Returns the value of attribute config_path.



5
6
7
# File 'lib/aws_local_config_parser/errors.rb', line 5

def config_path
  @config_path
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/aws_local_config_parser/errors.rb', line 12

def message
  "No AWS config file at: '#{config_path}'."
end