module Soxi::Wrapper

Constants

VERSION

Public Class Methods

file(filename) click to toggle source
# File lib/soxi/wrapper.rb, line 8
def self.file(filename)
  raise SoxiMissingError('Need soxi in path') unless soxi_exists?
  unless ::File.exist?(filename)
    raise FileMissingError("File: #{filename} does not exist")
  end
  Soxi::Wrapper::File.new filename
end
soxi_exists?() click to toggle source
# File lib/soxi/wrapper.rb, line 16
def self.soxi_exists?
  `which soxi` != ''
end