Skip to content

Instantly share code, notes, and snippets.

@dmichael
Created June 2, 2009 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmichael/122313 to your computer and use it in GitHub Desktop.
Save dmichael/122313 to your computer and use it in GitHub Desktop.
class Sndfile
begin
helper = File.join(root, 'win32', 'sndfile-info.exe')
`#{helper} --version`
rescue Exception => e
puts e.inspect
begin
helper = File.join(root, 'osx', 'sndfile-info')
`#{helper} --version`
rescue
begin
helper = File.join(root, 'linux', 'sndfile-info')
`#{helper} --version`
rescue
helper = nil
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment