Sha256: 58644fe6ebfcb552e8aa8a11b62fd4589b38ab9a2423df043765f682dd893072
Contents?: true
Size: 772 Bytes
Versions: 2
Compression:
Stored size: 772 Bytes
Contents
class Kamal::Cli::Server < Kamal::Cli::Base desc "bootstrap", "Set up Docker to run Kamal apps" def bootstrap missing = [] on(KAMAL.hosts | KAMAL.accessory_hosts) do |host| unless execute(*KAMAL.docker.installed?, raise_on_non_zero_exit: false) if execute(*KAMAL.docker.superuser?, raise_on_non_zero_exit: false) info "Missing Docker on #{host}. Installing…" execute *KAMAL.docker.install else missing << host end end end if missing.any? raise "Docker is not installed on #{missing.join(", ")} and can't be automatically installed without having root access and the `curl` command available. Install Docker manually: https://docs.docker.com/engine/install/" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kamal-0.16.1 | lib/kamal/cli/server.rb |
kamal-0.16.0 | lib/kamal/cli/server.rb |