lib/jarl/application.rb in jarl-0.5.0 vs lib/jarl/application.rb in jarl-0.6.0
- old
+ new
@@ -85,13 +85,13 @@
environment: environment,
command: (execute_command || command || '') + ' ' + args.join(' ')
)
end
- def ssh
+ def ssh(command = nil)
fail 'Not a running application' unless running?
- instances.first.ssh
+ instances.first.ssh(command)
end
def build
Docker::Image.new(image_name, image_full_path).build!
end
@@ -156,11 +156,11 @@
rescue Interrupt
#
end
end
- def ssh
- container.open_ssh_session!(Jarl.config.params)
+ def ssh(command = nil)
+ container.open_ssh_session!(Jarl.config.params, command)
end
def self.start(application, n = nil)
Docker.start(
name: (n ? "#{application.full_name}.#{n}" : application.full_name),