class Pione::Package::GitPackageReader
GitPackageReader
is a reader for git based package.
Public Class Methods
new(location)
click to toggle source
# File lib/pione/package/package-reader.rb, line 144 def initialize(location) @location = location end
Public Instance Methods
read()
click to toggle source
# File lib/pione/package/package-reader.rb, line 148 def read local_location = make_local_location digest = PackageCache.cache(local_location) return PackageHandler.new(PackageCache.directory_cache(digest), digest: digest) end
Private Instance Methods
make_local_location()
click to toggle source
# File lib/pione/package/package-reader.rb, line 156 def make_local_location # we should use local cloned repository, but currently export local_location = Location[Temppath.mkdir] @location.export(local_location) return local_location end