lib/poolparty/modules/cloud_resourcer.rb
# Set instances with a range or a number
# if passed with a hash, call nodes(hash) to return filtered list of 
# instances
Set instances with a range or a number
if passed with a hash, call nodes(hash) to return filtered list of
instances
Set instances with a range or a number if passed with a hash call nodes ( hash ) to return filtered list of instances
def instances(arg)
      case arg
      when Range
        minimum_instances arg.first
        maximum_instances arg.last
      when Fixnum
        minimum_instances arg
        maximum_instances arg
      when Hash
        nodes(arg)
      else
        raise SpecException.new("Don't know how to handle instances cloud input #{arg}")
      end
    end
def instances ( arg ) case arg when Range minimum_instances arg . first maximum_instances arg . last when Fixnum minimum_instances arg maximum_instances arg when Hash nodes ( arg ) else raise SpecException . new ( "Don't know how to handle instances cloud input #{arg}" ) end end
Set instances with a range or a number
if passed with a hash, call nodes(hash) to return filtered list of
instances
Set instances with a range or a number if passed with a hash call nodes ( hash ) to return filtered list of instances
arg