Accessory already knows its host
This commit is contained in:
@@ -110,7 +110,7 @@ class Mrsk::Cli::Accessory < Mrsk::Cli::Base
|
|||||||
with_accessory(name) do |accessory|
|
with_accessory(name) do |accessory|
|
||||||
run_locally do
|
run_locally do
|
||||||
info "Launching bash session on #{accessory.host}"
|
info "Launching bash session on #{accessory.host}"
|
||||||
exec accessory.bash(host: accessory.host)
|
exec accessory.bash
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -63,12 +63,12 @@ class Mrsk::Commands::Accessory < Mrsk::Commands::Base
|
|||||||
*command
|
*command
|
||||||
end
|
end
|
||||||
|
|
||||||
def exec_over_ssh(*command, host:)
|
def exec_over_ssh(*command)
|
||||||
run_over_ssh run_exec(*command, interactive: true).join(" "), host: host
|
run_over_ssh run_exec(*command, interactive: true).join(" "), host: host
|
||||||
end
|
end
|
||||||
|
|
||||||
def bash(host:)
|
def bash
|
||||||
exec_over_ssh "bash", host: host
|
exec_over_ssh "bash"
|
||||||
end
|
end
|
||||||
|
|
||||||
def ensure_local_file_present(local_file)
|
def ensure_local_file_present(local_file)
|
||||||
|
|||||||
Reference in New Issue
Block a user