Sha256: 8ac4db83c823f88590fed08652f31db45c2d7388c2cee263b888bf93ae2ece35

Contents?: true

Size: 631 Bytes

Versions: 53

Compression:

Stored size: 631 Bytes

Contents

module Kubes::Docker::Strategy::Build
  class Base
    extend Memoist
    include Kubes::Docker::Strategy::Utils

    def initialize(options, name)
      @options, @name = options, name
    end

    def run
      reserve_image_name
      check_dockerfile!
      perform
      store_image_name
    end

    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
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
kubes-0.9.3 lib/kubes/docker/strategy/build/base.rb
kubes-0.9.2 lib/kubes/docker/strategy/build/base.rb
kubes-0.9.1 lib/kubes/docker/strategy/build/base.rb
kubes-0.9.0 lib/kubes/docker/strategy/build/base.rb
kubes-0.8.10 lib/kubes/docker/strategy/build/base.rb
kubes-0.8.9 lib/kubes/docker/strategy/build/base.rb
kubes-0.8.8 lib/kubes/docker/strategy/build/base.rb
kubes-0.8.7 lib/kubes/docker/strategy/build/base.rb
kubes-0.8.6 lib/kubes/docker/strategy/build/base.rb
kubes-0.8.5 lib/kubes/docker/strategy/build/base.rb
kubes-0.8.4 lib/kubes/docker/strategy/build/base.rb
kubes-0.8.3 lib/kubes/docker/strategy/build/base.rb
kubes-0.8.2 lib/kubes/docker/strategy/build/base.rb
kubes-0.8.1 lib/kubes/docker/strategy/build/base.rb
kubes-0.8.0 lib/kubes/docker/strategy/build/base.rb
kubes-0.7.10 lib/kubes/docker/strategy/build/base.rb
kubes-0.7.9 lib/kubes/docker/strategy/build/base.rb
kubes-0.7.8 lib/kubes/docker/strategy/build/base.rb
kubes-0.7.7 lib/kubes/docker/strategy/build/base.rb
kubes-0.7.6 lib/kubes/docker/strategy/build/base.rb