Method: CollinsShell::AssetType#delete

Defined in:
lib/collins_shell/asset_type.rb

#delete(atype) ⇒ Object



35
36
37
38
39
40
41
42
43
# File 'lib/collins_shell/asset_type.rb', line 35

def delete atype
  call_collins get_collins_client, "asset_type_delete!" do |client|
    if client.asset_type_delete!(atype) then
      say_success "Successfully deleted asset type '#{atype}'"
    else
      say_error "Failed deleting asset type '#{atype}'"
    end
  end
end