Method: CloudFlock::Remote::Files#get_file
- Defined in:
- lib/cloudflock/remote/files.rb
#get_file(file) ⇒ Object
Public: Return the contents of a given file in the current directory.
file - String containing the path to a file.
Returns a String.
64 65 66 67 68 69 |
# File 'lib/cloudflock/remote/files.rb', line 64 def get_file(file) @files.files.get(file).body rescue Excon::Errors::Timeout, Fog::Storage::Rackspace::ServiceError # Triggered by server and request timeouts respectively. retry end |