Sha256: 5c3f99017c110926a3b4b1d889893e9ffa7d6f864e9bf721c6676e3207025a74

Contents?: true

Size: 400 Bytes

Versions: 8

Compression:

Stored size: 400 Bytes

Contents

require "irb/command"

module MissionControl::Jobs::Console
  class ConnectTo < IRB::Command::Base
    category "Mission control jobs"
    description "Connect to a job server"

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

      puts "Connected to #{server_locator}"
    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/connect_to.rb
mission_control-jobs-0.5.0 lib/mission_control/jobs/console/connect_to.rb
mission_control-jobs-0.4.0 lib/mission_control/jobs/console/connect_to.rb
mission_control-jobs-0.3.3 lib/mission_control/jobs/console/connect_to.rb
mission_control-jobs-0.3.2 lib/mission_control/jobs/console/connect_to.rb
mission_control-jobs-0.3.1 lib/mission_control/jobs/console/connect_to.rb
mission_control-jobs-0.3.0 lib/mission_control/jobs/console/connect_to.rb
mission_control-jobs-0.2.2 lib/mission_control/jobs/console/connect_to.rb