Method: Toolshed::ServerAdministration::SCP#initialize

Defined in:
lib/toolshed/server_administration/scp.rb

#initialize(options = nil) ⇒ SCP

Returns a new instance of SCP.



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/toolshed/server_administration/scp.rb', line 15

def initialize(options = nil)
  options ||= {}
  @password = options[:password]
  @remote_host = options[:remote_host]
  @remote_path = options[:remote_path]
  @local_path = options[:local_path]
  @username = options[:username]
  @verbose_output = options[:verbose_output]
  @ssh_options = options[:ssh_options]
  @ssh_options ||= {}
  @ssh_options.merge!(password: password_from_config(password))
end