Sha256: 38136d8f035b328d87c2d1f41335db8bf5dbddc72d280fbecab4f6e717dcef56
Contents?: true
Size: 557 Bytes
Versions: 29
Compression:
Stored size: 557 Bytes
Contents
require 'fog/core/collection' require 'fog/hp/models/block_storage/volume' module Fog module HP class BlockStorage class BootableVolumes < Fog::Collection model Fog::HP::BlockStorage::Volume def all data = service.list_bootable_volumes.body['volumes'] load(data) end def get(volume_id) volume = service.get_bootable_volume_details(volume_id).body['volume'] new(volume) rescue Fog::HP::BlockStorage::NotFound nil end end end end end
Version data entries
29 entries across 29 versions & 4 rubygems