Rolify app cli/command

This commit is contained in:
Tobias Bühlmann
2023-03-10 08:50:26 +01:00
parent 6b11303230
commit fdb0c8ee91
6 changed files with 126 additions and 94 deletions

View File

@@ -45,7 +45,7 @@ class Mrsk::Commander
end
def roles_on(host)
roles.select { |role| role.hosts.include?(host) }
roles.select { |role| role.hosts.include?(host.to_s) }
end
def traefik_hosts
@@ -61,8 +61,8 @@ class Mrsk::Commander
end
def app
@app ||= Mrsk::Commands::App.new(config)
def app(role: nil)
Mrsk::Commands::App.new(config, role: role)
end
def accessory(name)