class Mastiff::NullUploader

Public Class Methods

delete(filename) click to toggle source
# File lib/mastiff/null_uploader.rb, line 4
def self.delete(filename)
   return if filename.blank?
   filepath = File.join(new.store_dir, filename)
   File.delete(filepath) if File.exists?(filepath)
end
flush() click to toggle source
# File lib/mastiff/null_uploader.rb, line 9
def self.flush
  puts 'Doing nothing'
  return nil
end

Public Instance Methods

store_dir() click to toggle source
# File lib/mastiff/null_uploader.rb, line 13
def store_dir
  return '/tmp'
end
store_mime(fname, blob) click to toggle source
# File lib/mastiff/null_uploader.rb, line 16
def store_mime(fname, blob)
  return nil
end