Skip to content

Commit

Permalink
Better ordering and spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Sep 16, 2023
1 parent 431ca9e commit 46895d0
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/kamal/commander.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,6 @@ def hosts
end
end

def boot_strategy
if config.boot.limit.present?
{ in: :groups, limit: config.boot.limit, wait: config.boot.wait }
else
{}
end
end

def roles_on(host)
roles.select { |role| role.hosts.include?(host.to_s) }.map(&:name)
end
Expand Down Expand Up @@ -128,6 +120,7 @@ def traefik
@traefik ||= Kamal::Commands::Traefik.new(config)
end


def with_verbosity(level)
old_level = self.verbosity

Expand All @@ -140,6 +133,14 @@ def with_verbosity(level)
SSHKit.config.output_verbosity = old_level
end

def boot_strategy
if config.boot.limit.present?
{ in: :groups, limit: config.boot.limit, wait: config.boot.wait }
else
{}
end
end

def holding_lock?
self.holding_lock
end
Expand Down

0 comments on commit 46895d0

Please sign in to comment.