Class: Terradactyl::StacksApplyFilterPrePlanned
- Inherits:
-
StacksApplyFilterDefault
- Object
- StacksPlanFilterDefault
- StacksApplyFilterDefault
- Terradactyl::StacksApplyFilterPrePlanned
- Defined in:
- lib/terradactyl/filters.rb
Constant Summary
Constants included from Common
Common::BORDER_CHAR, Common::COLUMN_WIDTH
Instance Method Summary collapse
Methods inherited from StacksPlanFilterDefault
desc, #git_cmd, name, #stack_name
Methods included from Common
border, centre, config, cputs, dot_icon, print_content, print_crit, print_dot, print_header, print_line, print_message, print_ok, print_warning, required_versions_re, stack_icon, supported_revisions, tag, terraform_binary
Instance Method Details
#sift(stacks, base_dir) ⇒ Object
89 90 91 92 93 94 |
# File 'lib/terradactyl/filters.rb', line 89 def sift(stacks, base_dir) targets = Dir.glob("#{base_dir}/**/*.tfout").each_with_object([]) do |path, memo| memo << path.split('/')[1] end stacks & targets end |