Class: GFSM::Commands::BaseCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/commands/base_command.rb

Direct Known Subclasses

Changelog, Help, Version

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#stderrObject (readonly)

Returns the value of attribute stderr.



6
7
8
# File 'lib/commands/base_command.rb', line 6

def stderr
  @stderr
end

#stdoutObject (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

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/commands/base_command.rb', line 13

def run(args = [])
  raise NotImplementedError
end