]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/aviator/lib/puppet/feature/aviator/openstack/compute/requests/v2/public/reboot_server.rb
Revert "add aimonb/aviator to 3rdparty"
[dsa-puppet.git] / 3rdparty / modules / aviator / lib / puppet / feature / aviator / openstack / compute / requests / v2 / public / reboot_server.rb
diff --git a/3rdparty/modules/aviator/lib/puppet/feature/aviator/openstack/compute/requests/v2/public/reboot_server.rb b/3rdparty/modules/aviator/lib/puppet/feature/aviator/openstack/compute/requests/v2/public/reboot_server.rb
deleted file mode 100644 (file)
index 8aa2296..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-module Aviator
-
-  define_request :reboot_server, :inherit => [:openstack, :common, :v2, :public, :base] do
-
-    meta :service, :compute
-
-    link 'documentation',
-         'http://docs.openstack.org/api/openstack-compute/2/content/Reboot_Server-d1e3371.html'
-
-    param :id,   :required => true
-    param :type, :required => false
-
-
-    def body
-      p = {
-        :reboot => {
-          :type => params[:type] || 'SOFT'
-        }
-      }
-
-      p
-    end
-
-
-    def headers
-      super
-    end
-
-
-    def http_method
-      :post
-    end
-
-
-    def url
-      "#{ base_url }/servers/#{ params[:id] }/action"
-    end
-
-  end
-
-end