Method: IBMSmartCloud#delete_instances
- Defined in:
- lib/smartcloud.rb
#delete_instances(*instance_ids) ⇒ Object
510 511 512 513 514 515 |
# File 'lib/smartcloud.rb', line 510 def delete_instances(*instance_ids) threads=[] instance_ids.each {|id| logger.info "Sending delete request for: #{id}..."; threads << Thread.new { delete_instance(id) }; logger.info "Finished delete request for #{id}" } threads.each(&:join) true end |