Module: Doorway::RemoteFile
- Defined in:
- lib/doorway/commands/remote_file.rb
Instance Method Summary collapse
Instance Method Details
#remote_file(remote, options) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/doorway/commands/remote_file.rb', line 2 def remote_file(remote, ) if .is_a?(Hash) if template = .delete(:template) local = temp_from_template(template, ) end else local = end raise "You need to specify a local file or a template" unless local conn.scp.upload! local, remote end |