Files
kamal/lib/mrsk/cli/server.rb
David Heinemeier Hansson f0d88a5ffe Bootstrap accessory hosts too
2023-01-23 14:13:10 +01:00

9 lines
281 B
Ruby

require "mrsk/cli/base"
class Mrsk::Cli::Server < Mrsk::Cli::Base
desc "bootstrap", "Ensure Docker is installed on the servers"
def bootstrap
on(MRSK.hosts + MRSK.accessory_hosts) { execute "which docker || (apt-get update -y && apt-get install docker.io -y)" }
end
end