Sha256: 83e2e1ab2f353dcbc797d56842726003ca3641a6f40195e1308022c7e7dc7d09

Contents?: true

Size: 666 Bytes

Versions: 3

Compression:

Stored size: 666 Bytes

Contents

module Slideshow

class List

  include ManifestHelper

### fix: remove opts, use config (wrapped!!)
  
  def initialize( logger, opts, config )
    @logger  = logger
    @opts    = opts
    @config  = config
  end

  attr_reader :logger, :opts, :config

  def run
    manifests = installed_template_manifests
    
    puts ''
    puts 'Installed template packs in search path'
    
    installed_template_manifest_patterns.each_with_index do |pattern,i|
      puts "    [#{i+1}] #{pattern}"
    end
    puts '  include:'
    
    manifests.each do |manifest|
      puts "%16s (%s)" % [manifest[0], manifest[1]]
    end
  end

end # class List

end # class Slideshow

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slideshow-1.2.0.beta3 lib/slideshow/cli/commands/list.rb
slideshow-1.2.0.beta2 lib/slideshow/cli/commands/list.rb
slideshow-1.2.0.beta1 lib/slideshow/cli/commands/list.rb