Class: Noir::Base::TerminalCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/noir/base/terminal_command.rb

Class Method Summary collapse

Methods inherited from Command

check_command_not_found, description

Class Method Details

.execute(*args) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/noir/base/terminal_command.rb', line 6

def execute *args
  if self == Noir::Base::TerminalCommand
    raise 'called raw Noir::Base::TerminalCommand.execute. please call it in extended class.'
  end

  raise 'please override in extended class'
end

.sub_commandsObject



14
15
16
# File 'lib/noir/base/terminal_command.rb', line 14

def sub_commands
  return []
end