Sha256: 9e4ce15a9a0cc95355c1953a346a7b4c75a9f04a8aef47fd97061db94024549e

Contents?: true

Size: 311 Bytes

Versions: 45

Compression:

Stored size: 311 Bytes

Contents

class Kubes::Kubectl
  class Kustomize
    class << self
      extend Memoist

      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
      memoize :detect?
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
kubes-0.9.3 lib/kubes/kubectl/kustomize.rb
kubes-0.9.2 lib/kubes/kubectl/kustomize.rb
kubes-0.9.1 lib/kubes/kubectl/kustomize.rb
kubes-0.9.0 lib/kubes/kubectl/kustomize.rb
kubes-0.8.10 lib/kubes/kubectl/kustomize.rb
kubes-0.8.9 lib/kubes/kubectl/kustomize.rb
kubes-0.8.8 lib/kubes/kubectl/kustomize.rb
kubes-0.8.7 lib/kubes/kubectl/kustomize.rb
kubes-0.8.6 lib/kubes/kubectl/kustomize.rb
kubes-0.8.5 lib/kubes/kubectl/kustomize.rb
kubes-0.8.4 lib/kubes/kubectl/kustomize.rb
kubes-0.8.3 lib/kubes/kubectl/kustomize.rb
kubes-0.8.2 lib/kubes/kubectl/kustomize.rb
kubes-0.8.1 lib/kubes/kubectl/kustomize.rb
kubes-0.8.0 lib/kubes/kubectl/kustomize.rb
kubes-0.7.10 lib/kubes/kubectl/kustomize.rb
kubes-0.7.9 lib/kubes/kubectl/kustomize.rb
kubes-0.7.8 lib/kubes/kubectl/kustomize.rb
kubes-0.7.7 lib/kubes/kubectl/kustomize.rb
kubes-0.7.6 lib/kubes/kubectl/kustomize.rb