method
invoke_service_command
invoke_service_command(name, command)
private
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