Sha256: 8d4c170827dfb0fa984a9c6a469dd997f20525d9b609c0e9c973ed9d3355f013

Contents?: true

Size: 334 Bytes

Versions: 8

Compression:

Stored size: 334 Bytes

Contents

require 'krane/kubernetes_resource'

# See: https://github.com/Shopify/krane/pull/720
module Krane
  class KubernetesResource
    class << self
      def class_for_kind(kind)
        if Krane.const_defined?(kind, false)
          Krane.const_get(kind, false)
        end
      rescue NameError
        nil
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kuby-core-0.7.2 lib/ext/krane/kubernetes_resource.rb
kuby-core-0.7.1 lib/ext/krane/kubernetes_resource.rb
kuby-core-0.7.0 lib/ext/krane/kubernetes_resource.rb
kuby-core-0.6.1 lib/ext/krane/kubernetes_resource.rb
kuby-core-0.6.0 lib/ext/krane/kubernetes_resource.rb
kuby-core-0.5.0 lib/ext/krane/kubernetes_resource.rb
kuby-core-0.4.0 lib/ext/krane/kubernetes_resource.rb
kuby-core-0.3.0 lib/ext/krane/kubernetes_resource.rb