Module: Stem::Snapshot

Extended by:
Snapshot
Includes:
Util
Included in:
Snapshot
Defined in:
lib/stem/snapshot.rb

Instance Method Summary collapse

Methods included from Util

#get_filter_opts, #swirl, #tags_to_filter, #tagset_to_hash

Instance Method Details

#destroy(snapshot_id) ⇒ Object



11
12
13
# File 'lib/stem/snapshot.rb', line 11

def destroy(snapshot_id)
  swirl.call("DeleteSnapshot", "SnapshotId" => snapshot_id)
end

#listObject



6
7
8
9
# File 'lib/stem/snapshot.rb', line 6

def list
  result = swirl.call("DescribeSnapshots", "Owner" => "self")['snapshotSet'] || []
  result.map {|h| h['snapshotId'] }
end