Class: MissionControl::Jobs::Console::JobsHelp
- Inherits:
-
IRB::Command::Base
- Object
- IRB::Command::Base
- MissionControl::Jobs::Console::JobsHelp
- Defined in:
- lib/mission_control/jobs/console/jobs_help.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/mission_control/jobs/console/jobs_help.rb', line 8 def execute(*) puts "You are currently connected to #{MissionControl::Jobs::Current.server}" if MissionControl::Jobs::Current.server puts "You can connect to a job server with" puts %( connect_to <app_id>:<server_id>\n\n) puts "Available job servers:\n" MissionControl::Jobs.applications.each do |application| application.servers.each do |server| puts " * #{server.to_global_id}" end end end |