]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/aviator/lib/puppet/feature/aviator/openstack/compute/requests/v2/public/root.rb
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / aviator / lib / puppet / feature / aviator / openstack / compute / requests / v2 / public / root.rb
diff --git a/3rdparty/modules/aviator/lib/puppet/feature/aviator/openstack/compute/requests/v2/public/root.rb b/3rdparty/modules/aviator/lib/puppet/feature/aviator/openstack/compute/requests/v2/public/root.rb
new file mode 100644 (file)
index 0000000..3a3c4da
--- /dev/null
@@ -0,0 +1,24 @@
+module Aviator
+
+  define_request :root, :inherit => [:openstack, :common, :v2, :public, :base] do
+
+    meta :service, :compute
+
+    def headers
+      super
+    end
+
+
+    def http_method
+      :get
+    end
+
+
+    def url
+      uri = URI(base_url)
+      "#{ uri.scheme }://#{ uri.host }:#{ uri.port.to_s }/v2/"
+    end
+
+  end
+
+end