Class: Kubes::Kubectl::Kustomize

Inherits:
Object
  • Object
show all
Extended by:
Memoist
Defined in:
lib/kubes/kubectl/kustomize.rb

Class Method Summary collapse

Class Method Details

.detect?Boolean

Returns:

  • (Boolean)


6
7
8
9
# File 'lib/kubes/kubectl/kustomize.rb', line 6

def detect?
  expr = "#{Kubes.root}/.kubes/resources/**/*"
  !!Dir.glob(expr).detect { |p| p.include?("kustomization.y") } # allow for both .yml and .yaml to work
end