class Pkgman::Repositories::Local
Public Class Methods
new(target, repository, package)
click to toggle source
# File lib/pkgman/repositories/local.rb, line 5 def initialize(target, repository, package) @target = target @repository = repository @package = package end
Public Instance Methods
execute()
click to toggle source
# File lib/pkgman/repositories/local.rb, line 11 def execute dst = File.expand_path(@repository['path']) FileUtils.mkpath(dst) @target.download(@package.path, dst) end