Class: CARPS::Setup::Interface

Inherits:
QuitInterface show all
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.

Direct Known Subclasses

Editor, Email, Process

Instance Method Summary collapse

Methods included from ControlInterface

#quit

Methods inherited from Interface

#run

Constructor Details

#initializeInterface

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