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

Version Path
lorj_cloud-0.1.12 lib/process/cloud/providers/openstack/openstack_delete.rb
lorj_cloud-0.1.11 lib/process/cloud/providers/openstack/openstack_delete.rb
lorj_cloud-0.1.10 lib/process/cloud/providers/openstack/openstack_delete.rb
lorj_cloud-0.1.9 lib/process/cloud/providers/openstack/openstack_delete.rb
lorj_cloud-0.1.8 lib/process/cloud/providers/openstack/openstack_delete.rb
lorj_cloud-0.1.7 lib/process/cloud/providers/openstack/openstack_delete.rb
lorj_cloud-0.1.6 lib/process/cloud/providers/openstack/openstack_delete.rb
lorj_cloud-0.1.5 lib/process/cloud/providers/openstack/openstack_delete.rb
lorj_cloud-0.1.4 lib/process/cloud/providers/openstack/openstack_delete.rb
lorj_cloud-0.1.3 lib/process/cloud/providers/openstack/openstack_delete.rb
lorj_cloud-0.1.2 lib/process/cloud/providers/openstack/openstack_delete.rb
lorj_cloud-0.1.1 lib/process/cloud/providers/openstack/openstack_delete.rb
lorj_cloud-0.1.0 lib/providers/openstack/openstack_delete.rb
lorj-1.0.9 lib/providers/openstack/openstack_delete.rb
lorj-1.0.8 lib/providers/openstack/openstack_delete.rb
lorj-1.0.7 lib/providers/openstack/openstack_delete.rb
lorj-1.0.6 lib/providers/openstack/openstack_delete.rb
lorj-1.0.5 lib/providers/openstack/openstack_delete.rb
lorj-1.0.4 lib/providers/openstack/openstack_delete.rb