Class: Bubbles::Uploaders::LocalDir
- Inherits:
-
Object
- Object
- Bubbles::Uploaders::LocalDir
- Extended by:
- Forwardable
- Includes:
- CommonUploaderInterface
- Defined in:
- lib/bubbles/uploaders/local_dir.rb
Instance Method Summary collapse
Methods included from CommonUploaderInterface
Instance Method Details
#call ⇒ Object
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.}") command_queue.reschedule(self) end |
#inspect ⇒ Object
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 |