Exception: HazardousError
- Defined in:
- lib/cosmos/top_level.rb
Overview
If a hazardous command is sent through the Cosmos::Api this error is raised. Cosmos::Script rescues the error and prompts the user to continue.
Instance Attribute Summary collapse
-
#cmd_name ⇒ Object
Returns the value of attribute cmd_name.
-
#cmd_params ⇒ Object
Returns the value of attribute cmd_params.
-
#hazardous_description ⇒ Object
Returns the value of attribute hazardous_description.
-
#target_name ⇒ Object
Returns the value of attribute target_name.
Instance Attribute Details
#cmd_name ⇒ Object
Returns the value of attribute cmd_name.
27 28 29 |
# File 'lib/cosmos/top_level.rb', line 27 def cmd_name @cmd_name end |
#cmd_params ⇒ Object
Returns the value of attribute cmd_params.
28 29 30 |
# File 'lib/cosmos/top_level.rb', line 28 def cmd_params @cmd_params end |
#hazardous_description ⇒ Object
Returns the value of attribute hazardous_description.
29 30 31 |
# File 'lib/cosmos/top_level.rb', line 29 def hazardous_description @hazardous_description end |
#target_name ⇒ Object
Returns the value of attribute target_name.
26 27 28 |
# File 'lib/cosmos/top_level.rb', line 26 def target_name @target_name end |