Method: CloudDoor::CloudStorage#show_property

Defined in:
lib/cloud_door/cloud_storage.rb

#show_property(file_name) ⇒ Object



130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/cloud_door/cloud_storage.rb', line 130

def show_property(file_name)
  raise FileNameEmptyException if file_name.nil? || file_name.empty?
  @file_name = file_name
  raise SetIDException unless set_file_id
  unless file_exist?(file_name)
    raise FileNotExistsException, "'#{@file_name}' is not exists on cloud."
  end
  info = request_file
  raise NoDataException if info.nil? || !info.is_a?(Hash)
  format_property(info)
rescue => e
  handle_exception(e)
end