Module: VagrantPlugins::Openstack::Cap::SnapshotList

Defined in:
lib/vagrant-openstack-provider/cap/snapshot_list.rb

Class Method Summary collapse

Class Method Details

.snapshot_list(machine) ⇒ Array<String>

Returns a list of the snapshots that are taken on this machine.

Returns:

  • (Array<String>)


8
9
10
11
# File 'lib/vagrant-openstack-provider/cap/snapshot_list.rb', line 8

def self.snapshot_list(machine)
  env = machine.action(:snapshot_list, lock: false)
  env[:machine_snapshot_list]
end