Method: HP::Cloud::RemoteResource#read
- Defined in:
- lib/hpcloud/remote_resource.rb
#read ⇒ Object
223 224 225 226 227 228 229 230 231 232 233 234 235 |
# File 'lib/hpcloud/remote_resource.rb', line 223 def read begin yielded_something = false @storage.get_object(@container, @path) { |chunk, remain, tot| yield chunk yielded_something = true } yield '' unless yielded_something rescue Fog::Storage::HP::NotFound => e @cstatus = CliStatus.new("The specified object does not exist.", :not_found) result = false end end |