Class: Terradactyl::StacksPlanFilterGitDiffFetchHead
Constant Summary
Constants included
from Common
Common::BORDER_CHAR, Common::COLUMN_WIDTH
Class Method Summary
collapse
Instance Method Summary
collapse
#sift
#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
.desc ⇒ Object
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
|
.name ⇒ Object
50
51
52
|
# File 'lib/terradactyl/filters.rb', line 50
def self.name
'diff-fetch-head'
end
|
Instance Method Details
#git_cmd ⇒ Object
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
|