Module: Pione::Package::PackageTypeClassifier
- Defined in:
- lib/pione/package/package-reader.rb
Overview
PackageTypeClassifier provides the function to distinguish package types.
Class Method Summary collapse
-
.classify(location) ⇒ Symbol
Distinguish the type of package based on the location.
Class Method Details
.classify(location) ⇒ Symbol
Distinguish the type of package based on the location.
70 71 72 73 74 75 |
# File 'lib/pione/package/package-reader.rb', line 70 def classify(location) return :git if git?(location) return :archive if archive?(location) return :document if document?(location) return :directory end |