Class: FastestServer::FastestCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/fastest_server.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



39
40
41
42
43
44
45
46
# File 'lib/fastest_server.rb', line 39

def execute
  if @servers.nil? || @servers.empty?
    puts(help)
    exit_success
  end

  Fastest.new(@servers, job, verbose?).give_me_answer
end

#exit_successObject



35
36
37
# File 'lib/fastest_server.rb', line 35

def exit_success
  exit(0)
end