Class: PoiseLanguages::System::Provider Private

Inherits:
Chef::Provider
  • Object
show all
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`.

See Also:

Since:

  • 1.0

Instance Method Summary collapse

Instance Method Details

#action_installvoid

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.

Since:

  • 1.0



99
100
101
# File 'lib/poise_languages/system/resource.rb', line 99

def action_install
  run_package_action(:install)
end

#action_uninstallvoid

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.

Since:

  • 1.0



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_upgradevoid

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.

Since:

  • 1.0



106
107
108
# File 'lib/poise_languages/system/resource.rb', line 106

def action_upgrade
  run_package_action(:upgrade)
end