Class: Ansible::Ruby::Modules::Homebrew

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

Overview

Manages Homebrew 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, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

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

Instance Method Details

#install_optionsArray<String>, ...

Returns options flags to install a package.

Returns:

  • (Array<String>, String, nil)

    options flags to install a package



32
# File 'lib/ansible/ruby/modules/generated/packaging/os/homebrew.rb', line 32

attribute :install_options

#nameArray<String>, ...

Returns list of names of packages to install/remove.

Returns:

  • (Array<String>, String, nil)

    list of names of packages to install/remove



12
# File 'lib/ansible/ruby/modules/generated/packaging/os/homebrew.rb', line 12

attribute :name

#pathString?

Returns A ‘:’ separated list of paths to search for ‘brew’ executable. Since a package (I(formula) in homebrew parlance) location is prefixed relative to the actual path of I(brew) command, providing an alternative I(brew) path enables managing different set of packages in an alternative location in the system.

Returns:

  • (String, nil)

    A ‘:’ separated list of paths to search for ‘brew’ executable. Since a package (I(formula) in homebrew parlance) location is prefixed relative to the actual path of I(brew) command, providing an alternative I(brew) path enables managing different set of packages in an alternative location in the system.



16
# File 'lib/ansible/ruby/modules/generated/packaging/os/homebrew.rb', line 16

attribute :path

#state:head, ...

Returns state of the package.

Returns:

  • (:head, :latest, :present, :absent, :linked, :unlinked, nil)

    state of the package



20
# File 'lib/ansible/ruby/modules/generated/packaging/os/homebrew.rb', line 20

attribute :state

#update_homebrew:yes, ...

Returns update homebrew itself first.

Returns:

  • (:yes, :no, nil)

    update homebrew itself first



24
# File 'lib/ansible/ruby/modules/generated/packaging/os/homebrew.rb', line 24

attribute :update_homebrew

#upgrade_all:yes, ...

Returns upgrade all homebrew packages.

Returns:

  • (:yes, :no, nil)

    upgrade all homebrew packages



28
# File 'lib/ansible/ruby/modules/generated/packaging/os/homebrew.rb', line 28

attribute :upgrade_all