instance method validate!

Ruby on Rails 2.7.0

Since v1.9.3 Last seen in v2.11.0

Available in: v1.9.3 v2.0.0 v2.1.2 v2.2.2 v2.3.0 v2.4.0 v2.5.3 v2.6.1 v2.7.0 v2.8.2 v2.9.0 v2.10.1 v2.11.0

Signature

validate!()

No documentation comment.

Source
# File lib/kamal/configuration/validator/builder.rb, line 2
  def validate!
    super

    if config["cache"] && config["cache"]["type"]
      error "Invalid cache type: #{config["cache"]["type"]}" unless [ "gha", "registry" ].include?(config["cache"]["type"])
    end

    error "Builder arch not set" unless config["arch"].present?

    error "buildpacks only support building for one arch" if config["pack"] && config["arch"].is_a?(Array) && config["arch"].size > 1

    error "Cannot disable local builds, no remote is set" if config["local"] == false && config["remote"].blank?
  end

Defined in lib/kamal/configuration/validator/builder.rb line 2 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Kamal::Configuration::Validator::Builder

Type at least 2 characters to search.

↑↓ navigate · open · esc close