lib/kubes/core.rb in kubes-0.4.7 vs lib/kubes/core.rb in kubes-0.5.0
- old
+ new
@@ -26,7 +26,13 @@
memoize :logger
def kustomize?
Kubectl::Kustomize.detect?
end
+
+ def check_project!
+ return if File.exist?("#{Kubes.root}/.kubes/config.rb")
+ logger.error "ERROR: It doesnt look like this is a kubes project. Are you sure you are in a kubes project?".color(:red)
+ ENV['TS_TEST'] ? raise : exit(1)
+ end
end
end