Module: GClouder::Resources::Compute::Disks::Remote

Defined in:
lib/gclouder/resources/compute/disks.rb

Class Method Summary collapse

Class Method Details

.listObject



75
76
77
78
79
80
81
82
# File 'lib/gclouder/resources/compute/disks.rb', line 75

def self.list
  vm_disk_pattern = GClouder::Resources::Compute::Instances::Local.instance_names.map{ |disk| "^#{disk}$" }.join("|")

  Resources::Remote.instances(
    path:           ["compute", "disks"],
    skip_instances: { "name" => /^gke|#{vm_disk_pattern}/ },
  )
end