# File lib/openshift-origin-controller/app/models/application.rb, line 1319 def scaling_limits(dependency=nil) if dependency.nil? if self.scalable dependency = "web" else dependency = self.framework end end prof = @profile_name_map[@default_profile] cinst = ComponentInstance::find_component_in_cart(prof, self, dependency, self.get_name_prefix) raise OpenShift::NodeException.new("Cannot find #{dependency} component in app #{self.name}.", 135, result_io) if cinst.nil? ginst = self.group_instance_map[cinst.group_instance_name] return ginst.min,ginst.max end