Class: PoiseLanguages::Scl::Provider Private

Inherits:
Chef::Provider
  • Object
show all
Includes:
Poise
Defined in:
lib/poise_languages/scl/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_scl`.

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_scl` resource.

Since:

  • 1.0



70
71
72
73
74
75
76
77
# File 'lib/poise_languages/scl/resource.rb', line 70

def action_install
  notifying_block do
    install_scl_repo
    flush_yum_cache
    install_scl_package(:install)
    install_scl_devel_package(:install) if new_resource.dev_package
  end
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_scl` resource.

Since:

  • 1.0



94
95
96
97
98
99
# File 'lib/poise_languages/scl/resource.rb', line 94

def action_uninstall
  notifying_block do
    uninstall_scl_devel_package if new_resource.dev_package
    uninstall_scl_package
  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_scl` resource.

Since:

  • 1.0



82
83
84
85
86
87
88
89
# File 'lib/poise_languages/scl/resource.rb', line 82

def action_upgrade
  notifying_block do
    install_scl_repo
    flush_yum_cache
    install_scl_package(:upgrade)
    install_scl_devel_package(:upgrade) if new_resource.dev_package
  end
end