Sha256: 7a70897ffcc31262cd94dac1c3edf3d10a075bee117edc37df3f7e4567cdd69e

Contents?: true

Size: 274 Bytes

Versions: 13

Compression:

Stored size: 274 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.yaml") }
      end
      memoize :detect?
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kubes-0.3.5 lib/kubes/kubectl/kustomize.rb
kubes-0.3.4 lib/kubes/kubectl/kustomize.rb
kubes-0.3.3 lib/kubes/kubectl/kustomize.rb
kubes-0.3.2 lib/kubes/kubectl/kustomize.rb
kubes-0.3.1 lib/kubes/kubectl/kustomize.rb
kubes-0.3.0 lib/kubes/kubectl/kustomize.rb
kubes-0.2.6 lib/kubes/kubectl/kustomize.rb
kubes-0.2.5 lib/kubes/kubectl/kustomize.rb
kubes-0.2.4 lib/kubes/kubectl/kustomize.rb
kubes-0.2.3 lib/kubes/kubectl/kustomize.rb
kubes-0.2.2 lib/kubes/kubectl/kustomize.rb
kubes-0.2.1 lib/kubes/kubectl/kustomize.rb
kubes-0.2.0 lib/kubes/kubectl/kustomize.rb