Sha256: 39f17943ba0598167a738cf0840976441449550d0b8b8b40ce6f16910454bacd
Contents?: true
Size: 1.28 KB
Versions: 3
Compression:
Stored size: 1.28 KB
Contents
module Slideshow class List include LogUtils::Logging include ManifestHelper ### fix: remove opts, use config (wrapped!!) def initialize( opts, config ) @opts = opts @config = config end attr_reader :opts, :config def run home = Env.home ## replace home w/ ~ (to make out more readable (shorter)) ## e.g. use gsub( home, '~' ) puts '' puts 'Installed quickstarter packs in search path' installed_quick_manifest_patterns.each_with_index do |pattern,i| puts " [#{i+1}] #{pattern.gsub(home,'~')}" end puts ' include:' installed_quick_manifests.each do |manifest| pakname = manifest[0].gsub('.txt','').gsub('.quick','') manifestpath = manifest[1].gsub(home,'~') puts "%16s (%s)" % [pakname,manifestpath] end puts '' puts 'Installed template packs in search path' installed_template_manifest_patterns.each_with_index do |pattern,i| puts " [#{i+1}] #{pattern.gsub(home,'~')}" end puts ' include:' installed_template_manifests.each do |manifest| pakname = manifest[0].gsub('.txt','') manifestpath = manifest[1].gsub(home,'~') puts "%16s (%s)" % [pakname,manifestpath] end end end # class List end # class Slideshow
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slideshow-2.0.1 | lib/slideshow/cli/commands/list.rb |
slideshow-2.0.0 | lib/slideshow/cli/commands/list.rb |
slideshow-1.2.5 | lib/slideshow/cli/commands/list.rb |