Sha256: 43c1253d757a9f7c886250ac3c3bf61b6650c686fe8397777c922def2f3239d2

Contents?: true

Size: 542 Bytes

Versions: 6

Compression:

Stored size: 542 Bytes

Contents

class Lono::Bundler::Component::Fetcher
  class Local < Base
    def run
      stage_path = stage_path(rel_dest_dir)
      source = @component.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/blueprints/NAME
      # IE: cp -r /tmp/lono/bundler/stage/local/local1 vendor/blueprints/local1
      FileUtils.cp_r(src, stage_path)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/bundler/component/fetcher/local.rb
lono-8.0.0.pre.rc5 lib/lono/bundler/component/fetcher/local.rb
lono-8.0.0.pre.rc4 lib/lono/bundler/component/fetcher/local.rb
lono-8.0.0.pre.rc3 lib/lono/bundler/component/fetcher/local.rb
lono-8.0.0.pre.rc2 lib/lono/bundler/component/fetcher/local.rb
lono-8.0.0.pre.rc1 lib/lono/bundler/component/fetcher/local.rb