Methods

Included Modules

Class/Module Index [+]

Quicksearch

RHC::Rest::Mock::MockRestGearGroup

Public Class Methods

new(client=nil, carts=['name' => 'fake_geargroup_cart-0.1'], count=1) click to toggle source
# File lib/rhc/rest/mock.rb, line 704
def initialize(client=nil, carts=['name' => 'fake_geargroup_cart-0.1'], count=1)
  super({}, client)
  @cartridges = carts
  @gears = count.times.map do |i|
    {'state' => 'started', 'id' => "fakegearid#{i}", 'ssh_url' => "ssh://fakegearid#{i}@fakesshurl.com"}
  end
  @gear_profile = 'small'
  @base_gear_storage = 1
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.