Class: Bubbles::Uploaders::LocalDir

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
CommonUploaderInterface
Defined in:
lib/bubbles/uploaders/local_dir.rb

Instance Method Summary collapse

Methods included from CommonUploaderInterface

included, #initialize

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
# File 'lib/bubbles/uploaders/local_dir.rb', line 7

def call
  config.logger.debug("#{self.class.name}: transfering #{uid_file} to #{local_dir_uploader_path}")
  FileUtils.cp(uid_file, local_dir_uploader_path)
  
rescue Errno::ENOENT => e
  config.logger.error("#{e.message}")
  command_queue.reschedule(self)
end

#inspectObject



16
17
18
# File 'lib/bubbles/uploaders/local_dir.rb', line 16

def inspect
  "<##{self.class.name} uid_file: #{uid_file} to: #{local_dir_uploader_path}>"
end