Method: PoolParty::CloudResourcer#instances
- Defined in:
- lib/poolparty/modules/cloud_resourcer.rb
#instances(arg) ⇒ Object
Set instances with a range or a number if passed with a hash, call nodes(hash) to return filtered list of instances
43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/poolparty/modules/cloud_resourcer.rb', line 43 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 |