2014-08-30 23:50:03 -07:00
|
|
|
# Aptitude (ubuntu/debian) package adapter
|
|
|
|
module Package
|
|
|
|
module_function
|
|
|
|
|
|
|
|
def bootstrap; end
|
|
|
|
|
|
|
|
def install(package)
|
|
|
|
self.run("install", "-y", package)
|
|
|
|
end
|
|
|
|
|
2014-09-05 14:02:40 -07:00
|
|
|
def installed?; end
|
|
|
|
|
|
|
|
def remove(package); end
|
|
|
|
|
|
|
|
def update(*args); end
|
|
|
|
|
|
|
|
def tap(repo)
|
|
|
|
sh_safe "sudo add-apt-repository #{repo}"
|
|
|
|
end
|
|
|
|
|
|
|
|
def untap(repo); end
|
|
|
|
|
|
|
|
def tapped?(repo); end
|
|
|
|
|
2014-08-30 23:50:03 -07:00
|
|
|
# TODO Finish aptitude adapter
|
|
|
|
|
|
|
|
def run(*args)
|
|
|
|
system("sudo apt-get #{args.join(' ')}")
|
|
|
|
end
|
|
|
|
end
|