2013-07-02 06:49:47 -04:00
|
|
|
module Fog
|
|
|
|
module Compute
|
2013-08-27 05:19:54 -04:00
|
|
|
class VcloudDirector
|
2013-07-02 06:49:47 -04:00
|
|
|
class Real
|
2013-09-27 11:32:49 -04:00
|
|
|
# This is used for manual testing.
|
|
|
|
#
|
|
|
|
# @api private
|
2013-07-02 06:49:47 -04:00
|
|
|
def get_href(href)
|
|
|
|
request(
|
2013-09-16 13:13:09 -04:00
|
|
|
:expects => 200,
|
2013-09-29 13:57:18 -04:00
|
|
|
:idempotent => true,
|
2013-09-16 13:13:09 -04:00
|
|
|
:method => 'GET',
|
|
|
|
:parser => Fog::ToHashDocument.new,
|
2013-07-02 06:49:47 -04:00
|
|
|
:override_path => true,
|
2013-09-16 13:13:09 -04:00
|
|
|
:path => URI.parse(href).path
|
2013-07-02 06:49:47 -04:00
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|