Class: Chef::Knife::AcropolisSnapshotDelete
Instance Method Summary
collapse
#delete, #get, included, #post
Instance Method Details
#run ⇒ Object
28
29
30
31
32
33
34
35
|
# File 'lib/chef/knife/acropolis_snapshot_delete.rb', line 28
def run
validate
specs = Chef::Config[:knife][:snapUuid].to_s
p specs
task = delete("/snapshots", specs)
p task
end
|
#validate ⇒ Object
21
22
23
24
25
26
|
# File 'lib/chef/knife/acropolis_snapshot_delete.rb', line 21
def validate
unless Chef::Config[:knife][:snapUuid]
ui.error('Missing ID. Use -S (--snap-uuid) to set the snapshot ID for deletion. Use "knife acropolis snapshot list" to find the UUID.')
exit 1
end
end
|