Method: Cnvrg::Images#new_machine

Defined in:
lib/cnvrg/Images.rb

#new_machine(instance_type) ⇒ Object



437
438
439
440
441
442
# File 'lib/cnvrg/Images.rb', line 437

def new_machine(instance_type)
  title = "#{instance_type} auto created by cli"
  response = Cnvrg::API.request("users/#{@owner}/machines/new", 'POST', {machine_name: title, instance_type: instance_type})
  return Cnvrg::CLI.is_response_success(response)

end