method
invoke_service_command
v1_8_6_287 -
Show latest stable
- Class:
DRb::ExtServManager
invoke_service_command(name, command)private
No documentation available.
# File lib/drb/extservm.rb, line 82
def invoke_service_command(name, command)
raise "invalid command. name: #{name}" unless command
Thread.exclusive 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