lib/cuboid/application.rb in cuboid-0.0.5 vs lib/cuboid/application.rb in cuboid-0.1.0

- old
+ new

@@ -101,19 +101,19 @@ def max_memory @max_memory ||= 0 end - def provision_disk( ram ) - @max_disk = ram + def provision_disk( disk ) + @max_disk = disk end def max_disk - @max_memory ||= 0 + @max_disk ||= 0 end - def instance_service_for(name, service ) + def instance_service_for( name, service ) instance_services[name] = service end def instance_services @instance_services ||= {} @@ -125,16 +125,16 @@ def rest_services @rest_services ||= {} end - def dispatcher_service_for( name, service ) - dispatcher_services[name] = service + def agent_service_for( name, service ) + agent_services[name] = service end - def dispatcher_services - @dispatcher_services ||= {} + def agent_services + @agent_services ||= {} end def handler_for( signal, handler ) signal_handlers[signal] = handler end @@ -181,11 +181,11 @@ const = nil case type when :instance const = :Instances - when :dispatcher - const = :Dispatchers + when :agent + const = :Agents when :scheduler const = :Schedulers when :rest return Processes::Manager.spawn( :rest_service,