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( = nil) ||= {} @password = [:password] @remote_host = [:remote_host] @remote_path = [:remote_path] @local_path = [:local_path] @username = [:username] @verbose_output = [:verbose_output] @ssh_options = [:ssh_options] @ssh_options ||= {} @ssh_options.merge!(password: password_from_config(password)) end |