Class: Trema::RubySwitch
- Inherits:
-
HardwareSwitch
- Object
- HardwareSwitch
- Trema::RubySwitch
- Includes:
- Daemon
- Defined in:
- ruby/trema/ruby-switch.rb
Instance Attribute Summary
Attributes inherited from HardwareSwitch
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(stanza) ⇒ RubySwitch
constructor
A new instance of RubySwitch.
Methods included from Daemon
#pid_file, #restart!, #run, #run!, #running?, #shutdown, #shutdown!
Methods inherited from HardwareSwitch
Constructor Details
#initialize(stanza) ⇒ RubySwitch
Returns a new instance of RubySwitch.
28 29 30 |
# File 'ruby/trema/ruby-switch.rb', line 28 def initialize stanza super stanza end |
Instance Method Details
#command ⇒ Object
33 34 35 |
# File 'ruby/trema/ruby-switch.rb', line 33 def command "#{ ruby } -I#{ libruby } -rtrema -e \"Trema.module_eval IO.read( '#{ @stanza.path }' )\" #{ dpid_short }" end |