Sha256: fc0373326de5df0378cca8e0c2f41b6eac4c424487f8203287b0e89aab431437
Contents?: true
Size: 966 Bytes
Versions: 19
Compression:
Stored size: 966 Bytes
Contents
# encoding: UTF-8 # (c) Copyright 2014 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Defined Openstack object delete. class OpenstackController def delete_server(hParams) required?(hParams, :compute_connection) required?(hParams, :server) compute_connect = hParams[:compute_connection] server = hParams[:server] compute_connect.servers.get(server.id).destroy end end
Version data entries
19 entries across 19 versions & 2 rubygems