class Aruba::Platforms::DetermineFileSize

Returns size if exists. Returns -1 if path does not exist
@return [Integer]
The path to file
@param [String] path
Determine size of a file

def call(path)

def call(path)
  return -1 unless File.file? path
  FileSize.new(
    File.size(path)
  )
end