Exception: Tomo::Configuration::UnknownEnvironmentError

Inherits:
Error
  • Object
show all
Defined in:
lib/tomo/configuration/unknown_environment_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

raise_with

Methods included from Tomo::Colors

enabled?

Instance Attribute Details

#known_environmentsObject

Returns the value of attribute known_environments.



6
7
8
# File 'lib/tomo/configuration/unknown_environment_error.rb', line 6

def known_environments
  @known_environments
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/tomo/configuration/unknown_environment_error.rb', line 6

def name
  @name
end

Instance Method Details

#to_consoleObject



8
9
10
# File 'lib/tomo/configuration/unknown_environment_error.rb', line 8

def to_console
  known_environments.empty? ? no_envs : wrong_envs
end