Class: GFSM::Commands::BaseCommand
- Inherits:
-
Object
- Object
- GFSM::Commands::BaseCommand
- Defined in:
- lib/commands/base_command.rb
Instance Attribute Summary collapse
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(stdout: GFSM::Output, stderr: GFSM::Output) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
- #run(args = []) ⇒ Object
Constructor Details
#initialize(stdout: GFSM::Output, stderr: GFSM::Output) ⇒ BaseCommand
Returns a new instance of BaseCommand.
8 9 10 11 |
# File 'lib/commands/base_command.rb', line 8 def initialize(stdout: GFSM::Output, stderr: GFSM::Output) @stdout = stdout @stderr = stderr end |
Instance Attribute Details
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
6 7 8 |
# File 'lib/commands/base_command.rb', line 6 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
6 7 8 |
# File 'lib/commands/base_command.rb', line 6 def stdout @stdout end |
Instance Method Details
#run(args = []) ⇒ Object
13 14 15 |
# File 'lib/commands/base_command.rb', line 13 def run(args = []) raise NotImplementedError end |