Sha256: 196eec57375db9a2e2507e3f7f771488f2a6191524faa33eb66831ce171d8cf1
Contents?: true
Size: 588 Bytes
Versions: 5
Compression:
Stored size: 588 Bytes
Contents
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
5 entries across 5 versions & 1 rubygems