lib/solaris/patchdiag.rb
def latest(patch)
      major = Patch.new(patch.to_s).major
      find(major).max ||
        raise(Solaris::Patch::NotFound,
              "Cannot find patch #{patch} in patchdiag.xref")
    end
# Return the Solaris::PatchdiagEntry of the latest version of the
# given patch (a String like xxxxxx-yy or xxxxxx or a
# Solaris::Patch). Throws Solaris::Patch::NotFound if the patch
# cannot be found in patchdiag.xref.
Return the Solaris::PatchdiagEntry of the latest version of the
given patch (a String like xxxxxx-yy or xxxxxx or a
Solaris::Patch). Throws Solaris::Patch::NotFound if the patch
cannot be found in patchdiag.xref.
Return the Solaris :: PatchdiagEntry of the latest version of the given patch ( a String like xxxxxx - yy or xxxxxx or a Solaris :: Patch ) . Throws Solaris :: Patch :: NotFound if the patch cannot be found in patchdiag . xref .
def latest(patch)
      major = Patch.new(patch.to_s).major
      find(major).max ||
        raise(Solaris::Patch::NotFound,
              "Cannot find patch #{patch} in patchdiag.xref")
    end
def latest ( patch ) major = Patch . new ( patch . to_s ) . major find ( major ) . max || raise ( Solaris :: Patch :: NotFound , "Cannot find patch #{patch} in patchdiag.xref" ) end
Return the Solaris::PatchdiagEntry of the latest version of the
given patch (a String like xxxxxx-yy or xxxxxx or a
Solaris::Patch).
Return the Solaris :: PatchdiagEntry of the latest version of the given patch ( a String like xxxxxx - yy or xxxxxx or a Solaris :: Patch ) .
patch