class Caco::Downloader
Constants
- Stubbed
Public Instance Methods
write_file(ctx, tempfile:, dest:, **)
click to toggle source
# File lib/caco/downloader.rb, line 32 def write_file(ctx, tempfile:, dest:, **) if Caco.config.write_files FileUtils.mkdir_p(File.dirname(dest)) File.rename tempfile.path, dest else tempfile.unlink end end