Extract fly helpers for Mix tasks
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
defmodule Mix.Tasks.MusicLibrary.Prod.Helpers do
|
||||
def fly_ssh(command) do
|
||||
System.cmd("flyctl", ["ssh", "console", "--command", command], into: IO.stream())
|
||||
end
|
||||
|
||||
def fly_sftp_get(remote_path, local_path) do
|
||||
System.cmd("flyctl", ["ssh", "sftp", "get", remote_path, local_path], into: IO.stream())
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user