Class: Zypper::Patch
Defined Under Namespace
Constant Summary collapse
- FILTER_OPTIONS =
[:name, :edition, :arch, :category, :status, :pkgmanager, :restart, :interactive, :repository_url, :repository_alias]
Constants inherited from Update
Update::DEFALUT_TYPE, Update::KNOWN_TYPES
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
-
#all(options = {}) ⇒ Object
Lists all known patches.
-
#applicable(options = {}) ⇒ Object
All applicable patches.
-
#applicable?(options = {}) ⇒ Boolean
Are there any applicable patches present?.
-
#find(options = {}) ⇒ Object
Lists all patches.
-
#install(options = {}) ⇒ Object
Installs all applicable patches.
-
#installed(options = {}) ⇒ Object
All installed patches.
Methods inherited from Update
Methods included from ZypperUtils
Instance Method Details
#all(options = {}) ⇒ Object
Lists all known patches
36 37 38 |
# File 'lib/zypper/patch.rb', line 36 def all( = {}) find() end |
#applicable(options = {}) ⇒ Object
All applicable patches
41 42 43 |
# File 'lib/zypper/patch.rb', line 41 def applicable( = {}) find(.merge(:status => Status::NEEDED)) end |
#applicable?(options = {}) ⇒ Boolean
Are there any applicable patches present?
46 47 48 |
# File 'lib/zypper/patch.rb', line 46 def applicable?( = {}) applicable().size > 0 end |
#find(options = {}) ⇒ Object
Lists all patches
31 32 33 |
# File 'lib/zypper/patch.rb', line 31 def find( = {}) apply_filters(find_updates(.merge(:type => :patch)), ) end |
#install(options = {}) ⇒ Object
Installs all applicable patches
51 52 53 54 |
# File 'lib/zypper/patch.rb', line 51 def install( = {}) run(build_command('patch', )) end |