Exception: Creds::MissingEnvError Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary collapse

MESSAGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

rubocop:disable Layout/TrailingWhitespace

<<-MSG.strip_heredoc.freeze
  Creds scopes credentials to the current Rails environment.
  It seems you are missing a scope for the environment "%<env>s".

  Here's an example of how your credentials could look:

  ---
  aws_key: 'shared between environments'

  production:
<<: *default
aws_key: 'you can override defaults for individual environments'
MSG

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ MissingEnvError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

rubocop:enable Layout/TrailingWhitespace



40
41
42
# File 'lib/creds/errors.rb', line 40

def initialize(env)
  super(format(MESSAGE, env: env))
end