Class: CARPS::Setup::Interface
- Inherits:
-
QuitInterface
- Object
- Interface
- QuitInterface
- CARPS::Setup::Interface
- Includes:
- ControlInterface
- Defined in:
- lib/carps/wizard/steps.rb
Overview
Base class for configuration steps
Subclasses must:
-
do all real work in a ‘test’ method, after ensuring that the configuration is valid.
-
define a ‘required’ method which returns an array of 2 cell arrays pairing instance variables
with the name of a command which would instantiate that variable. This is so the mandatory command can detect which options the user still needs to fill in.
Instance Method Summary collapse
-
#initialize ⇒ Interface
constructor
A new instance of Interface.
Methods included from ControlInterface
Methods inherited from Interface
Constructor Details
#initialize ⇒ Interface
Returns a new instance of Interface.
44 45 46 47 48 49 |
# File 'lib/carps/wizard/steps.rb', line 44 def initialize super add_command :skip, "Skip this step." add_command :test, "Test that your settings are correct." add_command :done, "Proceed to the next step." end |