Method: VMC::Client#create_app

Defined in:
lib/vmc/client.rb

#create_app(name, manifest = {}) ⇒ Object



81
82
83
84
85
86
87
# File 'lib/vmc/client.rb', line 81

def create_app(name, manifest={})
  
  app = manifest.dup
  app[:name] = name
  app[:instances] ||= 1
  json_post(VMC::APPS_PATH, app)
end