Global option for designating primary host only

This commit is contained in:
David Heinemeier Hansson
2023-01-20 17:18:32 +01:00
parent 79b5ed179e
commit 31389bc7b5
7 changed files with 49 additions and 43 deletions

View File

@@ -57,11 +57,11 @@ class Mrsk::Commands::App < Mrsk::Commands::Base
*command
end
def console(host: config.primary_host)
def console(host:)
exec_over_ssh "bin/rails", "c", host: host
end
def bash(host: config.primary_host)
def bash(host:)
exec_over_ssh "bash", host: host
end