lib/kubes/compiler/util/normalize.rb in kubes-0.4.3 vs lib/kubes/compiler/util/normalize.rb in kubes-0.4.4

- old
+ new

@@ -3,9 +3,9 @@ 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(/-.*/,'') + File.basename(path).sub('.yaml','').sub('.yml','').sub('.rb','').sub(/-.*/,'') end end end