Sha256: df84997bfb1ff26d184fc74b533429ea672c57121208c67e965402fb9b048ee6
Contents?: true
Size: 455 Bytes
Versions: 18
Compression:
Stored size: 455 Bytes
Contents
require 'fileutils' require 'pe_build/idempotent' class PEBuild::Transfer::File # @param src [URI] The local file path path to the file to copy # @param dst [String] The path to destination of the copied file def initialize(uri, dst) @src = uri.path @dst = dst @logger = Log4r::Logger.new('vagrant::pe_build::transfer::file') end include PEBuild::Idempotent def copy idempotent(@dst) { FileUtils.cp @src, @dst } end end
Version data entries
18 entries across 18 versions & 1 rubygems