libraries/resource_providers/api500/c7000/volume_provider.rb
def delete
          return false unless @item.retrieve!
          flag = @new_resource.delete_from_appliance_only ? :oneview : :all
          msg = @new_resource.delete_from_appliance_only ? 'only' : 'and the storage system'
          Chef::Log.info "Deleting #{@resource_name} '#{@name}' from appliance #{msg}"
          @context.converge_by "Deleted #{@resource_name} '#{@name}' from appliance #{msg}" do
            @item.delete(flag)
          end
          true
        end
# Delete the OneView resource if it exists
# @param [Symbol] method Delete or remove method
# @return [TrueClass, FalseClass] Returns true if the resource was deleted/removed
Delete the OneView resource if it exists
Delete the OneView resource if it exists
def delete
          return false unless @item.retrieve!
          flag = @new_resource.delete_from_appliance_only ? :oneview : :all
          msg = @new_resource.delete_from_appliance_only ? 'only' : 'and the storage system'
          Chef::Log.info "Deleting #{@resource_name} '#{@name}' from appliance #{msg}"
          @context.converge_by "Deleted #{@resource_name} '#{@name}' from appliance #{msg}" do
            @item.delete(flag)
          end
          true
        end
def delete return false unless @item . retrieve! flag = @new_resource . delete_from_appliance_only ? :oneview : :all msg = @new_resource . delete_from_appliance_only ? 'only' : 'and the storage system' Chef :: Log . info "Deleting #{@resource_name} '#{@name}' from appliance #{msg}" @context . converge_by "Deleted #{@resource_name} '#{@name}' from appliance #{msg}" do @item . delete ( flag ) end true end
Delete the OneView resource if it exists
Delete the OneView resource if it exists
Returns true if the resource was deleted/removed
Returns true if the resource was deleted / removed
TrueClass, FalseClass
method Delete or remove method
method Delete or remove method