Class: Ansible::Ruby::Modules::Macports

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

Overview

Manages MacPorts packages

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

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

Constructor Details

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

Instance Method Details

#nameString

Returns name of package to install/remove.

Returns:

  • (String)

    name of package to install/remove



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

attribute :name

#state:present, ...

Returns state of the package.

Returns:

  • (:present, :absent, :active, :inactive, nil)

    state of the package



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

attribute :state

#update_cache:yes, ...

Returns update the package db first.

Returns:

  • (:yes, :no, nil)

    update the package db first



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

attribute :update_cache