Class: Ansible::Ruby::Modules::Slackpkg

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/packaging/os/slackpkg.rb

Instance Method Summary collapse

Methods inherited from Base

#to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#nameArray<String>, String

Returns name of package to install/remove.

Returns:

  • (Array<String>, String)

    name of package to install/remove



10
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/slackpkg.rb', line 10

attribute :name

#state:present, ...

Returns state of the package, you can use “installed” as an alias for C(present) and removed as one for c(absent).

Returns:

  • (:present, :absent, :latest, nil)

    state of the package, you can use “installed” as an alias for C(present) and removed as one for c(absent).



14
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/slackpkg.rb', line 14

attribute :state

#update_cacheBoolean?

Returns update the package database first.

Returns:

  • (Boolean, nil)

    update the package database first



18
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/slackpkg.rb', line 18

attribute :update_cache