class Kubes::Docker::Strategy::Build::Base
Public Class Methods
new(options, name)
click to toggle source
# File lib/kubes/docker/strategy/build/base.rb, line 6 def initialize(options, name) @options, @name = options, name end
Public Instance Methods
check_dockerfile!()
click to toggle source
# File lib/kubes/docker/strategy/build/base.rb, line 17 def check_dockerfile! # Dockerfile is also used in args/default.rb, will have to combine if Dockerfile is made configurable return if File.exist?("Dockerfile") logger.error "ERROR: The Dockerfile does not exist. Cannot build the docker image without a Dockerfile".color(:red) exit 1 end
run()
click to toggle source
# File lib/kubes/docker/strategy/build/base.rb, line 10 def run reserve_image_name check_dockerfile! perform store_image_name end