class Sprinkle::Installers::PackageInstaller
This is a abstract class installer that most all the package installers inherit from (deb, *BSD pkg, rpm, etc)
Attributes
packages[RW]
holds the list of packages to be installed
Public Class Methods
auto_api(*args)
click to toggle source
automatically sets up the api for package installation based on the class name
Apt
becomes the method `apt`, etc
# File lib/sprinkle/installers/package_installer.rb, line 19 def self.auto_api(*args) method_name = args.first || self.to_s.underscore.split("/").last class_name = self.to_s api do method="def #{method_name}(*names, &block) install #{class_name}.new(self, *names, &block) end" eval(method) end end