Sha256: bf3ce8d6c2e4128c19e53905859accdf5ef21825f5059cbcfb3a2dec6be529a5

Contents?: true

Size: 658 Bytes

Versions: 8

Compression:

Stored size: 658 Bytes

Contents

require "irb/command"

module MissionControl::Jobs::Console
  class JobsHelp < IRB::Command::Base
    category "Mission control jobs"
    description "Show help for managing jobs"

    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
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mission_control-jobs-0.6.0 lib/mission_control/jobs/console/jobs_help.rb
mission_control-jobs-0.5.0 lib/mission_control/jobs/console/jobs_help.rb
mission_control-jobs-0.4.0 lib/mission_control/jobs/console/jobs_help.rb
mission_control-jobs-0.3.3 lib/mission_control/jobs/console/jobs_help.rb
mission_control-jobs-0.3.2 lib/mission_control/jobs/console/jobs_help.rb
mission_control-jobs-0.3.1 lib/mission_control/jobs/console/jobs_help.rb
mission_control-jobs-0.3.0 lib/mission_control/jobs/console/jobs_help.rb
mission_control-jobs-0.2.2 lib/mission_control/jobs/console/jobs_help.rb