Sha256: 1073b609397ca2ccb567d6de204716eb00a6813343e2b4fd1f4ee484df84749b
Contents?: true
Size: 286 Bytes
Versions: 17
Compression:
Stored size: 286 Bytes
Contents
module Kubes::Compiler::Util module Normalize def normalize_kind(path) extract_type(path).underscore.camelize # Deployment, Service, Ingress, ManagedCertificate, etc end def extract_type(path) File.basename(path).sub('.rb','').sub(/-.*/,'') end end end
Version data entries
17 entries across 17 versions & 1 rubygems