invoke_service_command(name, command) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/drb/extservm.rb, line 75
    def invoke_service_command(name, command)
      raise "invalid command. name: #{name}" unless command
      synchronize do
        return if @servers.include?(name)
        @servers[name] = false
      end
      uri = @uri || DRb.uri
      if RUBY_PLATFORM =~ /mswin32/ && /NT/ =~ ENV["OS"]
        system(%Q'cmd /c start "ruby" /b #{command} #{uri} #{name}')
      else
        system("#{command} #{uri} #{name} &")
      end
    end
Register or log in to add new notes.