From 81f8911fc7960c44fa6cfa33ec8d62a8c8320799 Mon Sep 17 00:00:00 2001 From: Rodrigo Estebanez Date: Tue, 3 Sep 2013 13:17:13 +0200 Subject: [PATCH] clean-up --- .../vcloud_director/models/compute/disks.rb | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/lib/fog/vcloud_director/models/compute/disks.rb b/lib/fog/vcloud_director/models/compute/disks.rb index ef97cca61..ced4d318e 100644 --- a/lib/fog/vcloud_director/models/compute/disks.rb +++ b/lib/fog/vcloud_director/models/compute/disks.rb @@ -10,31 +10,9 @@ module Fog attribute :vm -# def index -# disks.map{ |disk| new(disk.merge(all_disks: @disks, vm_id: vm_id))} -# end -# -# def all -# index -# end -# -# def get(instance_id) -# disk = disks.detect{ |disk| disk['InstanceID'] == instance_id } -# return nil unless disk -# new(disk.merge(all_disks: @disks, vm_id: vm_id)) -# end -# -# def get_by_name(disk_name) -# disk = disks.detect{ |disk| disk['element_name'] == disk_name } -# return nil unless disk -# new(disk.merge(all_disks: @disks, vm_id: vm_id)) -# end - def create(size) item_list unless @disks data = Fog::Generators::Compute::VcloudDirector::Disks.new(@disks) - puts data - puts data.disks data.add_hard_disk(size) response = service.put_vm_disks(vm.id, data.disks) service.process_task(response.body) @@ -56,13 +34,6 @@ module Fog items end -# private - -# def disks -# @disks = service.get_vm_disks(vm_id).body -# @disks['disks'] -# end - end end end