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

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/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, #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



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

attribute :install_options

#nameArray<String>, ...

Returns name of package to install/remove.

Returns:

  • (Array<String>, String, nil)

    name of package to install/remove



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

attribute :name

#pathString?

Returns ‘:’ 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)

    ‘:’ 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.



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

attribute :path

#state:head, ...

Returns state of the package.

Returns:

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

    state of the package



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

attribute :state

#update_homebrewBoolean?

Returns update homebrew itself first.

Returns:

  • (Boolean, nil)

    update homebrew itself first



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

attribute :update_homebrew

#upgrade_allBoolean?

Returns upgrade all homebrew packages.

Returns:

  • (Boolean, nil)

    upgrade all homebrew packages



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

attribute :upgrade_all