lib/compute.rb in forj-0.0.40 vs lib/compute.rb in forj-0.0.41

- old
+ new

@@ -14,20 +14,23 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'rubygems' -require 'require_relative' # # compute module # module Compute def delete_forge(oFC, name) instances = oFC.oCompute.servers.all(:name => name) + iCount = 0 instances.each do|instance| # make sure we don't delete another forge because fog filters # the name in a "like syntax" way + Logging.debug("Removing '%s'" % [instance.id]) oFC.oCompute.servers.get(instance.id).destroy + iCount += 1 end + Logging.message("Forge: %s - %d servers removed" % [name, iCount]) end end