Method: Jarl::CLI#ssh
- Defined in:
- lib/jarl/cli.rb
#ssh(name, command = nil, *args) ⇒ Object
80 81 82 83 84 85 86 |
# File 'lib/jarl/cli.rb', line 80 def ssh(name, command = nil, *args) Jarl.load() app = Jarl.find_applications_by(name).first abort "Failed to find application by name: '#{name}'" unless app abort "Application is not running: '#{app.full_name}'" unless app.running? app.ssh([command] + args) end |