class Pione::Command::PioneTupleSpaceProvider
‘PioneTupleSpaceProvider` is for `pione-tuple-space-provider` command.
Public Class Methods
spawn(cmd)
click to toggle source
Create a new process of tuple space provider command.
# File lib/pione/command/pione-tuple-space-provider.rb, line 10 def self.spawn(cmd) spawner = Spawner.new(cmd.model, "pione-tuple-space-provider") # debug options spawner.option_if(Global.debug_system, "--debug=system") spawner.option_if(Global.debug_ignored_exception, "--debug=ignored_exception") spawner.option_if(Global.debug_rule_engine, "--debug=rule_engine") spawner.option_if(Global.debug_communication, "--debug=communication") spawner.option_if(Global.debug_notification, "--debug=notification") # requisite options spawner.option("--parent-front", cmd.model[:front].uri) spawner.option("--communication-address", Global.communication_address) Global.notification_targets.each do |address| spawner.option("--notification-target", address) end # optionals spawner.option("--color", Global.color_enabled) spawner.spawn end