Class: Terradactyl::StacksPlanFilterGitDiffFetchHead

Inherits:
StacksPlanFilterGitDiffHead show all
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 inherited from StacksPlanFilterGitDiffHead

#sift

Methods inherited from StacksPlanFilterDefault

#sift, #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

Class Method Details

.descObject



54
55
56
# File 'lib/terradactyl/filters.rb', line 54

def self.desc
  'A list of all stacks that differ from Git FETCH_HEAD'
end

.nameObject



50
51
52
# File 'lib/terradactyl/filters.rb', line 50

def self.name
  'diff-fetch-head'
end

Instance Method Details

#git_cmdObject



58
59
60
61
62
# File 'lib/terradactyl/filters.rb', line 58

def git_cmd
  `git --no-pager diff --name-only FETCH_HEAD ORIG_HEAD .`
rescue StandardError
  String.new
end