Class: MissionControl::Jobs::Console::ConnectTo

Inherits:
IRB::Command::Base
  • Object
show all
Defined in:
lib/mission_control/jobs/console/connect_to.rb

Instance Method Summary collapse

Instance Method Details

#execute(server_locator) ⇒ Object



8
9
10
11
12
13
# File 'lib/mission_control/jobs/console/connect_to.rb', line 8

def execute(server_locator)
  server = MissionControl::Jobs::Server.from_global_id(server_locator)
  MissionControl::Jobs::Current.server = server

  puts "Connected to #{server_locator}"
end