Method: Pakman::List#run
- Defined in:
- lib/pakman/cli/commands/list.rb
#run ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/pakman/cli/commands/list.rb', line 17 def run manifests = installed_template_manifests puts 'Installed template packs in search path' installed_template_manifest_patterns.each_with_index do |pattern,i| puts " [#{i+1}] #{pattern}" end puts ' include:' if manifests.empty? puts " -- none --" else manifests.each do |manifest| puts "%16s (%s)" % [manifest[0].gsub('.txt',''), manifest[1]] end end end |