Method: ThorSsh::Actions#destination_files
- Defined in:
- lib/thor-ssh/actions.rb
#destination_files ⇒ Object
Returns a remote file or File object that can used to query or change the state of files. If there is no destination_server it is assumed to be local and a normal File class is returned
27 28 29 30 31 32 33 |
# File 'lib/thor-ssh/actions.rb', line 27 def destination_files if self.destination_connection return @destination_files ||= RemoteFile.new(self, self.destination_connection) else return @destination_files ||= LocalFile.new(self) end end |