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.



7
8
9
# File 'lib/fakettp/commands/fakettp_command.rb', line 7

def initialize args
  @args = args
end

Instance Method Details

#runObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/fakettp/commands/fakettp_command.rb', line 11

def run
  command = @args[0]
  return usage unless command
  case command
  when 'install' then
    return install
  else
    return usage
  end
end