Class: Candelabra::Pianobar::Start
- Inherits:
-
Object
- Object
- Candelabra::Pianobar::Start
- Defined in:
- lib/candelabra/pianobar.rb
Overview
The following classes are commands invoked with the ‘go’ method
Instance Method Summary collapse
Instance Method Details
#go ⇒ Object
109 110 111 112 113 114 115 116 117 118 |
# File 'lib/candelabra/pianobar.rb', line 109 def go pid = fork do $stdin.reopen File.open( Installer.input_path , 'r+' ) $stdout.reopen File.open( Installer.output_path, 'w+' ) exec 'pianobar' end ::Process.detach(pid) pid end |