Class: Lando::Generator::Command::Ls
- Inherits:
-
Object
- Object
- Lando::Generator::Command::Ls
- Extended by:
- Lando::Generator::CommandHelper
- Defined in:
- lib/lando/generator/command/ls.rb
Class Method Summary collapse
Methods included from Lando::Generator::CommandHelper
assert_template_exists, require_nonblank, templates_path
Class Method Details
.execute ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/lando/generator/command/ls.rb', line 10 def execute template_dirs = Dir.glob("#{templates_path}/*").select {|f| File.directory? f} template_dirs.each do |td| puts File.basename td end end |