Module: Mimas::Server::Console

Included in:
Mimas::Server
Defined in:
lib/mimas/server/console.rb

Instance Method Summary collapse

Instance Method Details

#start_console(site) ⇒ Object



4
5
6
7
8
9
# File 'lib/mimas/server/console.rb', line 4

def start_console(site)
  console_command = site.console
  exec_command = "cd #{current_path(site)} && ~/.cargo/bin/rv run #{console_command}"

  interactive_ssh(host, user: user, command: exec_command)
end