# File lib/selenium/rake/remote_control_stop_task.rb, line 27
27:       def define
28:         desc "Stop Selenium Remote Control running"
29:         task @name do
30:           puts "Stopping Selenium Remote Control running at #{host}:#{port}..."
31:           remote_control = Selenium::RemoteControl::RemoteControl.new(
32:               host, port, :timeout => timeout_in_seconds,
33:               :shutdown_command => shutdown_command)
34:           remote_control.stop
35:           if @wait_until_stopped
36:             TCPSocket.wait_for_service_termination :host => host, :port => port
37:           end
38:           puts "Stopped Selenium Remote Control running at #{host}:#{port}"
39:         end
40:       end