Class: Fakettp::Commands::FakettpCommand

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

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ FakettpCommand

Returns a new instance of FakettpCommand.



4
5
6
# File 'lib/fakettp/commands/fakettp_command.rb', line 4

def initialize args
  @args = args
end

Instance Method Details

#runObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/fakettp/commands/fakettp_command.rb', line 8

def run
  command = get_command
  return usage unless command
  case command
  when 'install' then
    return install
  else
    return usage
  end
end