Method: CollinsShell::Asset#delete

Defined in:
lib/collins_shell/asset.rb

#deleteObject



41
42
43
44
45
46
47
48
49
# File 'lib/collins_shell/asset.rb', line 41

def delete
  call_collins get_collins_client, "delete asset" do |client|
    if client.delete!(options.tag, :reason => options.reason, :nuke => options.nuke) then
      say_success "deleted asset #{options.tag}"
    else
      say_error "deleting asset #{options.tag}", :exit => true
    end
  end
end