class Dotpack::Package

Attributes

path[R]

Public Class Methods

all() click to toggle source
# File lib/dotpack/package.rb, line 9
def self.all
  return @packages unless @packages.nil?
  repos = Repo.all
  packages = repos.map{|x| Dir[x.path + "/*"]}.flatten
  packages.select!{|x| File.exist? x + "/Dotpackfile"}
  @packages = packages.map{|x| Package.new(x)}
  @packages
end
new(path) click to toggle source
# File lib/dotpack/package.rb, line 19
def initialize(path)
  @path = path
end