Sha256: 6424a04ce958da1a4e2842d6781ac0903b9ab9aa176f7df6199f4a100fd9f6a4
Contents?: true
Size: 621 Bytes
Versions: 3
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true require 'pathname' require 'skippy/installer' require 'skippy/library' class Skippy::LocalLibraryInstaller < Skippy::LibraryInstaller # @return [Skippy::Library] def install info "Installing #{source.basename} from #{source.origin}..." library = Skippy::Library.new(source.origin) target = path.join(library.name) FileUtils.mkdir_p(path) # Must remove the destination in order to ensure update installations works. FileUtils.copy_entry(source.origin, target, false, false, true) Skippy::Library.new(target, source: source) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
skippy-0.5.2.a | lib/skippy/installer/local.rb |
skippy-0.5.1.a | lib/skippy/installer/local.rb |
skippy-0.5.0.a | lib/skippy/installer/local.rb |