Sha256: c71fae000fdc5dc49a82684b3bdd55c3e55d68cf195bc68495ccef28e4ad474f

Contents?: true

Size: 373 Bytes

Versions: 10

Compression:

Stored size: 373 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real
        def server_action(server_id, body, expects = [200, 202])
          request(
            :body    => Fog::JSON.encode(body),
            :expects => expects,
            :method  => 'POST',
            :path    => "servers/#{server_id}/action.json"
          )
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-openstack-0.1.21 lib/fog/compute/openstack/requests/server_action.rb
fog-openstack-0.1.20 lib/fog/compute/openstack/requests/server_action.rb
fog-openstack-0.1.19 lib/fog/compute/openstack/requests/server_action.rb
fog-openstack-0.1.18 lib/fog/compute/openstack/requests/server_action.rb
fog-openstack-0.1.17 lib/fog/compute/openstack/requests/server_action.rb
fog-openstack-0.1.15 lib/fog/compute/openstack/requests/server_action.rb
fog-openstack-0.1.14 lib/fog/compute/openstack/requests/server_action.rb
fog-openstack-0.1.13 lib/fog/compute/openstack/requests/server_action.rb
fog-openstack-0.1.12 lib/fog/compute/openstack/requests/server_action.rb
fog-openstack-0.1.11 lib/fog/compute/openstack/requests/server_action.rb