Sha256: 85ce01aa4ea1b233496c14e399544975fb4f17a9d83b56a77a2e8b8530e48c70
Contents?: true
Size: 771 Bytes
Versions: 1
Compression:
Stored size: 771 Bytes
Contents
module Rip class RipfilePackage < Package handles '.rip' def initialize(source, *args) super @source = File.expand_path(source) end def exists? File.exists? source end def name source.split('/').last end def meta_package? true end def cached? false end def fetch! end def unpack! FileUtils.rm_rf cache_path FileUtils.mkdir_p cache_path FileUtils.cp source, cache_path end def dependencies! if File.exists? deps = File.join(cache_path, name) File.readlines(deps).map do |line| source, version, *extra = line.split(' ') Package.for(source, version) end else [] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rip-0.0.1 | lib/rip/packages/ripfile_package.rb |