Class: Terradactyl::StacksPlanFilterDefault

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/terradactyl/filters.rb

Constant Summary

Constants included from Common

Common::BORDER_CHAR, Common::COLUMN_WIDTH

Class Method Summary collapse

Instance Method Summary collapse

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

Class Method Details

.descObject



11
12
13
# File 'lib/terradactyl/filters.rb', line 11

def self.desc
  'A list of all stacks in the basedir'
end

.nameObject



7
8
9
# File 'lib/terradactyl/filters.rb', line 7

def self.name
  'default'
end

Instance Method Details

#git_cmdObject



15
16
17
# File 'lib/terradactyl/filters.rb', line 15

def git_cmd
  `git ls-files .`
end

#sift(stacks, _base_dir) ⇒ Object



23
24
25
# File 'lib/terradactyl/filters.rb', line 23

def sift(stacks, _base_dir)
  stacks
end

#stack_name(path) ⇒ Object



19
20
21
# File 'lib/terradactyl/filters.rb', line 19

def stack_name(path)
  path.split('/')[1]
end