don't expose rpm, gem, and tar functionality until they're done

This commit is contained in:
Jeanine Adkisson 2011-01-05 20:17:18 -08:00
parent 9de4678d90
commit e2e404c956
1 changed files with 1 additions and 6 deletions

View File

@ -94,20 +94,15 @@ p :exists => File.directory?(builddir)
# TODO: [Jay] make this better.
def package_class_for(type)
({
:deb => FPM::Deb,
:rpm => FPM::Rpm
:deb => FPM::Deb
})[:"#{type}"]
end
# TODO: [Jay] make this better.
def source_class_for(type)
case type.to_s
when 'gem'
FPM::Gem
when 'dir'
FPM::Dir
when 'tar'
FPM::Tar
else
raise ArgumentError, "unknown package type #{type.inspect}"
end