memcached (openstack) is no longer in use
[mirror/dsa-puppet.git] / 3rdparty / modules / aviator / lib / puppet / feature / aviator / openstack / compute / requests / v2 / public / root.rb
1 module Aviator
2
3   define_request :root, :inherit => [:openstack, :common, :v2, :public, :base] do
4
5     meta :service, :compute
6
7     def headers
8       super
9     end
10
11
12     def http_method
13       :get
14     end
15
16
17     def url
18       uri = URI(base_url)
19       "#{ uri.scheme }://#{ uri.host }:#{ uri.port.to_s }/v2/"
20     end
21
22   end
23
24 end