module RHC::Rest::Mock

Public Class Methods

start() click to toggle source
# File lib/rhc/rest/mock.rb, line 5
def self.start
  RHC::Helpers.warn "Running in mock mode"
  MockRestClient.new.tap do |c|
    d = c.add_domain("test1")
    app = d.add_application('app1', 'carttype1')
    app.cartridges[0].display_name = "A display name"
    app.add_cartridge('mockcart2')
    app2 = d.add_application('app2', 'carttype2', true)
  end
end