Class: Trema::CustomSwitch
- Inherits:
-
HardwareSwitch
- Object
- HardwareSwitch
- Trema::CustomSwitch
- Includes:
- Daemon
- Defined in:
- ruby/trema/custom-switch.rb
Instance Attribute Summary
Attributes inherited from HardwareSwitch
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(stanza) ⇒ CustomSwitch
constructor
A new instance of CustomSwitch.
Methods included from Daemon
#pid_file, #restart!, #run, #run!, #running?, #shutdown, #shutdown!
Methods inherited from HardwareSwitch
Constructor Details
#initialize(stanza) ⇒ CustomSwitch
Returns a new instance of CustomSwitch.
30 31 32 |
# File 'ruby/trema/custom-switch.rb', line 30 def initialize stanza super stanza end |
Instance Method Details
#command ⇒ Object
35 36 37 |
# File 'ruby/trema/custom-switch.rb', line 35 def command "CHIBACH_TMP=#{ Trema.tmp } #{ path } -i #{ dpid_short } > #{ log_file } &" end |