Class: Candelabra::Pianobar::Start

Inherits:
Object
  • Object
show all
Defined in:
lib/candelabra/pianobar.rb

Overview

The following classes are commands invoked with the ‘go’ method

Instance Method Summary collapse

Instance Method Details

#goObject



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