]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/aviator/lib/puppet/feature/aviator/openstack/identity/requests/v2/public/root.rb
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / aviator / lib / puppet / feature / aviator / openstack / identity / requests / v2 / public / root.rb
1 module Aviator
2
3   define_request :root, :inherit => [:openstack, :common, :v2, :public, :base] do
4
5     meta :service, :identity
6
7
8     def headers
9       super
10     end
11
12
13     def http_method
14       :get
15     end
16
17
18     def url
19       uri = URI(base_url)
20       "#{ uri.scheme }://#{ uri.host }:#{ uri.port.to_s }/v2.0/"
21     end
22
23   end
24
25 end