Class: Packit::Packager
- Inherits:
-
Object
- Object
- Packit::Packager
- Defined in:
- lib/packit/packager.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(debconf) ⇒ Packager
constructor
A new instance of Packager.
Constructor Details
Class Method Details
.pack(config: nil) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/packit/packager.rb', line 6 def self.pack(config: nil) config ||= File.join(Dir.pwd, 'packit.yml') debconf = Config.load(config) case debconf.strategy when 'simple' DpkgDeb.new(debconf).package when 'pbuilder' Pbuilder.new(debconf).package else "Build strategy #{config.strategy} is not supported" end end |