Files
ubicloud/prog/vm/prep_host.rb
Burak Velioglu 82541eee1c Colour the prompt of the VmHost for production hosts
Make the prompt color red for production hosts to
warn the operator.
2023-11-24 10:12:59 +03:00

11 lines
259 B
Ruby

# frozen_string_literal: true
class Prog::Vm::PrepHost < Prog::Base
subject_is :sshable, :vm_host
label def start
sshable.cmd("sudo host/bin/prep_host.rb #{vm_host.ubid.shellescape} #{Config.rack_env.shellescape}")
pop "host prepared"
end
end