Files
kamal/lib/kamal/configuration/boot.rb
David Heinemeier Hansson c4a203e648 Rename to Kamal
2023-08-22 08:24:31 -07:00

21 lines
342 B
Ruby

class Kamal::Configuration::Boot
def initialize(config:)
@options = config.raw_config.boot || {}
@host_count = config.all_hosts.count
end
def limit
limit = @options["limit"]
if limit.to_s.end_with?("%")
@host_count * limit.to_i / 100
else
limit
end
end
def wait
@options["wait"]
end
end