class Kubes::CLI::Build
Public Instance Methods
build?()
click to toggle source
# File lib/kubes/cli/build.rb, line 9 def build? return false if @options[:build] == false || @options[:image] || Kubes.config.image @options[:resource].nil? || @options[:resource] == "deployment" end
run()
click to toggle source
# File lib/kubes/cli/build.rb, line 3 def run return unless build? Kubes::Docker.new(@options, "build").run Kubes::Docker.new(@options, "push").run end