Class: PoiseLanguages::System::Provider Private
- Inherits:
-
Chef::Provider
- Object
- Chef::Provider
- PoiseLanguages::System::Provider
- Includes:
- Poise
- Defined in:
- lib/poise_languages/system/resource.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
The default provider for ‘poise_languages_system`.
Instance Method Summary collapse
-
#action_install ⇒ void
private
The ‘install` action for the `poise_languages_system` resource.
-
#action_uninstall ⇒ void
private
The ‘uninstall` action for the `poise_languages_system` resource.
-
#action_upgrade ⇒ void
private
The ‘upgrade` action for the `poise_languages_system` resource.
Instance Method Details
#action_install ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
The ‘install` action for the `poise_languages_system` resource.
99 100 101 |
# File 'lib/poise_languages/system/resource.rb', line 99 def action_install run_package_action(:install) end |
#action_uninstall ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
The ‘uninstall` action for the `poise_languages_system` resource.
113 114 115 116 117 118 119 |
# File 'lib/poise_languages/system/resource.rb', line 113 def action_uninstall action = node.platform_family?('debian') ? :purge : :remove package_resources(action).each do |resource| resource.run_action(action) new_resource.updated_by_last_action(true) if resource.updated_by_last_action? end end |
#action_upgrade ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
The ‘upgrade` action for the `poise_languages_system` resource.
106 107 108 |
# File 'lib/poise_languages/system/resource.rb', line 106 def action_upgrade run_package_action(:upgrade) end |