Sha256: a1716b8317f1ab45afe4eda7c523881152e1910a2fd5dc90fc00988e1556ed1d
Contents?: true
Size: 827 Bytes
Versions: 24
Compression:
Stored size: 827 Bytes
Contents
class Kubes::CLI class Compile < Base # Separate command like prune can call compile. Apply also calls Prune. # Instead of moving Compile out of Prune, will use this class variable. # In case we have other cases where compile is called in another area. # We only want compiled to be called once so hooks only fire once. # Done here so we don't clean and remove the .kubes/output folder. @@compiled = false def run return if @@compiled build_docker_image Clean.new(@options.merge(mute: true)).run Kubes::Compiler.new(@options).run @@compiled = true end # auto build docker image and push image if kubes docker build not yet called def build_docker_image return if File.exist?(Kubes.config.state.path) Build.new(@options).run end end end
Version data entries
24 entries across 24 versions & 1 rubygems