Sha256: 09577214d20a480330e7f99352b0ca82c7316fcc536098e8e300bd3443937f29

Contents?: true

Size: 625 Bytes

Versions: 14

Compression:

Stored size: 625 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real
        # Shelve the server.
        #
        # === Parameters
        # * server_id <~String> - The ID of the server to be shelved
        # === Returns
        # * success <~Boolean>
        def shelve_server(server_id)
          body = {'shelve' => nil}
          server_action(server_id, body).status == 202
        end # def shelve_server
      end # class Real

      class Mock
        def shelve_server(_server_id)
          true
        end # def shelve_server
      end # class Mock
    end # class OpenStack
  end # module Compute
end # module Fog

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-openstack-0.1.25 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.24 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.23 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.22 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.21 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.20 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.19 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.18 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.17 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.15 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.14 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.13 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.12 lib/fog/compute/openstack/requests/shelve_server.rb
fog-openstack-0.1.11 lib/fog/compute/openstack/requests/shelve_server.rb