Class: Pione::Package::GitPackageReader

Inherits:
PackageReader show all
Defined in:
lib/pione/package/package-reader.rb

Overview

GitPackageReader is a reader for git based package.

Instance Method Summary collapse

Methods inherited from PackageReader

read

Constructor Details

#initialize(location) ⇒ GitPackageReader

Returns a new instance of GitPackageReader.



144
145
146
# File 'lib/pione/package/package-reader.rb', line 144

def initialize(location)
  @location = location
end

Instance Method Details

#readObject



148
149
150
151
152
# 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