Sha256: 29c03ca5ee1310aaa89283552879b9913914de89818c19daa2e56bae265428d0
Contents?: true
Size: 742 Bytes
Versions: 2
Compression:
Stored size: 742 Bytes
Contents
require 'fileutils' require 'pathname' require 'tmpdir' require 'logger' require 'escoffier/compressible' # Standard Mise en Place-able module Smepable $LOG ||= Logger.new(STDOUT) include Compressible def prep_mise(input_entry, output_directory = Dir.mktmpdir) # destination_dirname = File.dirname(output_directory) FileUtils.mkdir_p(output_directory) unless File.exist?(output_directory) $LOG.info "Copying #{input_entry} to #{output_directory}" verbose = $LOG.level <= Logger::DEBUG source = input_entry FileUtils.cp_r(source, output_directory, :verbose => verbose) $LOG.info "Unzipping #{output_directory}" unzip(output_directory, :recursive => true) return output_directory end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
escoffier-0.1.0 | lib/escoffier/smepable.rb |
escoffier-0.0.0 | lib/escoffier/smepable.rb |