client/lib/deltacloud/client/methods/common.rb
# A generic method for destroying resources
#
A generic method for destroying resources
A generic method for destroying resources
def destroy_resource(resource_name, resource_id)
        must_support! resource_name.to_s.pluralize
        result = connection.delete(
          api_uri([resource_name.to_s.pluralize, resource_id].join('/'))
        )
        result.status.is_no_content?
      end
def destroy_resource ( resource_name , resource_id ) must_support! resource_name . to_s . pluralize result = connection . delete ( api_uri ( [ resource_name . to_s . pluralize , resource_id ] . join ( '/' ) ) ) result . status . is_no_content? end
A generic method for destroying resources
A generic method for destroying resources
resource_name
<not_specific>
resource_id
<not_specific>