Class: Templatron::ListCommand

Inherits:
AbstractCommand show all
Defined in:
lib/templatron/cli.rb

Overview

Use to list the template dir

Instance Method Summary collapse

Instance Method Details

#executeObject



26
27
28
29
30
31
# File 'lib/templatron/cli.rb', line 26

def execute
  col = Collector.new(subpath, all?, false, verbose?)
  entries = col.list

  entries.each { |e| puts e.sub(col.full_path, '') }
end