Sha256: 75f108b790100b7961affb31df8b8e8383d2023ca393cec9e18e77574c78c230

Contents?: true

Size: 665 Bytes

Versions: 54

Compression:

Stored size: 665 Bytes

Contents

class Ey::Core::Client
  class Real
    def update_untracked_server(params={})
      request(
        :method => :put,
        :path   => "/untracked-servers/#{params.delete("id")}",
        :body   => params,
      )
    end
  end

  class Mock
    def update_untracked_server(params={})
      identity = resource_identity(params) || require_parameters(params["untracked_server"], "id")
      server  = find(:untracked_servers, identity)

      update_params = Cistern::Hash.slice(params["untracked_server"], "provisioner_id", "location", "state")

      response(
        :body => { "untracked_server" => server.merge!(update_params) },
      )
    end
  end
end

Version data entries

54 entries across 54 versions & 3 rubygems

Version Path
ey-core-3.6.0.autoscaling1 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.6.4 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.6.3 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.6.1 lib/ey-core/requests/update_untracked_server.rb
groove-ey-core-3.6.3 lib/ey-core/requests/update_untracked_server.rb
groove-ey-core-3.6.2 lib/ey-core/requests/update_untracked_server.rb
groove-ey-core-3.6.1 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.5.0 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.4.4 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.4.2 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.4.1 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.4.0 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.3.1 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.3.0 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.2.6 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.2.5 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.2.4 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.2.3 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.2.2 lib/ey-core/requests/update_untracked_server.rb
ey-core-3.2.1 lib/ey-core/requests/update_untracked_server.rb