Class: Zypper::Update
- Inherits:
-
Object
- Object
- Zypper::Update
- Includes:
- ZypperUtils
- Defined in:
- lib/zypper/update.rb
Constant Summary collapse
- KNOWN_TYPES =
[:patch, :package, :pattern, :product]
- DEFALUT_TYPE =
:patch
Constants included from ZypperUtils
ZypperUtils::ATTRIBUTE_STARTS_WITH, ZypperUtils::PARAMS_FOR_TYPES, ZypperUtils::XML_COMMANDS_GET
Instance Attribute Summary
Attributes included from ZypperUtils
#config, #last_error_message, #last_exit_status, #last_message
Instance Method Summary collapse
-
#find_updates(options = {}) ⇒ Object
Lists all known updates.
Methods included from ZypperUtils
Instance Method Details
#find_updates(options = {}) ⇒ Object
Lists all known updates
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/zypper/update.rb', line 12 def find_updates( = {}) [:type] = DEFALUT_TYPE if [:type].nil? # FIXME: check allowed types = {:quiet => true, :get => XML_COMMANDS_GET, :type => [:type].to_s} out = xml_run build_command('list-updates', .merge()) convert_output(out.fetch(:stream, {}).fetch(:update_status, {}).fetch(:update_list, {}).fetch(:update, []), [:type]) # FIXME: implement filters end |