Class: Serverkit::Backends::SshBackend

Inherits:
BaseBackend show all
Defined in:
lib/serverkit/backends/ssh_backend.rb

Constant Summary collapse

DEFAULT_SSH_OPTIONS =
{}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseBackend

#logger, #run_command, #send_file

Constructor Details

#initialize(host: nil, ssh_options: nil, **args) ⇒ SshBackend

Returns a new instance of SshBackend.

Parameters:

  • host (String) (defaults to: nil)
  • ssh_options (Hash) (defaults to: nil)


15
16
17
18
19
# File 'lib/serverkit/backends/ssh_backend.rb', line 15

def initialize(host: nil, ssh_options: nil, **args)
  super(**args)
  @host = host
  @ssh_options = ssh_options
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



11
12
13
# File 'lib/serverkit/backends/ssh_backend.rb', line 11

def host
  @host
end