module Kustomize::PathnameRefinements
Constants
- KUSTOMIZATION_FILENAME
- KUSTOMIZATION_FILENAME_PAT
- RC_EXT_PAT
Public Instance Methods
all_rc_files_within()
click to toggle source
# File lib/kustomize/pathname_refinements.rb, line 32 def all_rc_files_within self.all_rc_files_within_visit.flatten end
all_rc_files_within_visit()
click to toggle source
# File lib/kustomize/pathname_refinements.rb, line 36 def all_rc_files_within_visit if self.resource_config_file? [self] elsif self.directory? self.children.map{ |ch| ch.all_rc_files_within_visit } else [] end end
child_kustomization_file()
click to toggle source
# File lib/kustomize/pathname_refinements.rb, line 24 def child_kustomization_file self / KUSTOMIZATION_FILENAME end
kustomization_dir?()
click to toggle source
# File lib/kustomize/pathname_refinements.rb, line 28 def kustomization_dir? self.directory? and self.child_kustomization_file.file? end
kustomization_file?()
click to toggle source
# File lib/kustomize/pathname_refinements.rb, line 20 def kustomization_file? self.file? and self.visible? and !!(self.basename.to_s =~ KUSTOMIZATION_FILENAME_PAT) end
resource_config_file?()
click to toggle source
# File lib/kustomize/pathname_refinements.rb, line 16 def resource_config_file? self.file? and self.visible? and !!(self.basename.to_s =~ RC_EXT_PAT) end
visible?()
click to toggle source
# File lib/kustomize/pathname_refinements.rb, line 12 def visible? self.basename.to_s[0] != '.' end