projects
/
mirror
/
dsa-puppet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0c6d383589d2c5c977a6606c0ac2d26baa3017e9
[mirror/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