Method: Amazon#new_instance
- Defined in:
- lib/cluster/infrastructures/amazon.rb
#new_instance(size, services) ⇒ Object
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'lib/cluster/infrastructures/amazon.rb', line 272 def new_instance(size, services) args = { :services => services, :size => size } if .spot_instances unless .price puts "Amazon Spot instances need a '--price=??' argument" exit 3 end args.merge! :spot_price => .price end =begin type = size_to_type size groups = services_to_groups services image = type_to_image type puts "type #{type} Groups #{groups.inspect} K #{key} I #{image} UD #{user}" =end ins = AmazonInstance.create args puts ins.inspect ins end |