Sha256: aa123b08c5c593f0a62be5857468814c1650943e3d5b92c50027ef24ba8fa17a
Contents?: true
Size: 494 Bytes
Versions: 6
Compression:
Stored size: 494 Bytes
Contents
require 'fileutils' module DocFace class Writer def write(directory,file,content) if !dir_exists?(directory) FileUtils.mkdir_p(directory) end writer(file,content) end def dir_exists?(directory) File.directory?(directory) end def writer (file,content) File.open(file, 'w') { |file| file.write(content) } end def assets(source,dest) FileUtils.cp_r("#{source}/.", dest, :remove_destination => true) end end end
Version data entries
6 entries across 6 versions & 1 rubygems