Module: Terraspace::CLI::Concerns::SourceDirs

Included in:
Fmt, Fmt::Runner, List
Defined in:
lib/terraspace/cli/concerns/source_dirs.rb

Instance Method Summary collapse

Instance Method Details

#app_source_dirsObject

dont include vendor: used by fmt



9
10
11
# File 'lib/terraspace/cli/concerns/source_dirs.rb', line 9

def app_source_dirs
  Dir.glob("{app}/{modules,stacks}/*").select { |p| File.directory?(p) }.sort
end

#source_dirsObject

used by list



4
5
6
# File 'lib/terraspace/cli/concerns/source_dirs.rb', line 4

def source_dirs
  Dir.glob("{app,vendor}/{modules,stacks}/*").select { |p| File.directory?(p) }.sort
end