Sha256: 050151b04d82f9eb586898d45a6028adbe6992796252fbaac6ccab5ac0ab93d1
Contents?: true
Size: 534 Bytes
Versions: 6
Compression:
Stored size: 534 Bytes
Contents
class TerraspaceBundler::Mod::Fetcher class Local < Base def run stage_path = stage_path(rel_dest_dir) source = @mod.source src = source.sub(/^~/, ENV['HOME']) # allow ~/ notation FileUtils.rm_rf(stage_path) FileUtils.mkdir_p(File.dirname(stage_path)) logger.debug "Local: cp -r #{src} #{stage_path}" # copy from stage area to vendor/modules/NAME # IE: cp -r /tmp/terraspace/bundler/stage/local/local1 vendor/modules/local1 FileUtils.cp_r(src, stage_path) end end end
Version data entries
6 entries across 6 versions & 1 rubygems