Method: GoodData::Rest::Client#project_webdav_path

Defined in:
lib/gooddata/rest/client.rb

#project_webdav_path(opts = { project: GoodData.project }) ⇒ Object



284
285
286
287
288
289
290
291
292
293
294
295
296
# File 'lib/gooddata/rest/client.rb', line 284

def project_webdav_path(opts = { project: GoodData.project })
  p = opts[:project]
  fail ArgumentError, 'No :project specified' if p.nil?

  project = GoodData::Project[p, opts]
  fail ArgumentError, 'Wrong :project specified' if project.nil?

  url = project.links['uploads']
  fail 'Project WebDAV not supported in this Data Center' unless url

  GoodData.logger.warn 'Beware! Project webdav is deprecated and should not be used.'
  url
end