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