Class: Ansible::Ruby::Modules::Yarn

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

Overview

Manage node.js packages with the Yarn package manager (yarnpkg.com/)

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

#executableObject?

Returns The executable location for yarn.

Returns:

  • (Object, nil)

    The executable location for yarn.



28
# File 'lib/ansible/ruby/modules/generated/packaging/language/yarn.rb', line 28

attribute :executable

#globalSymbol?

Returns Install the node.js library globally.

Returns:

  • (Symbol, nil)

    Install the node.js library globally



24
# File 'lib/ansible/ruby/modules/generated/packaging/language/yarn.rb', line 24

attribute :global

#ignore_scriptsSymbol?

Returns Use the –ignore-scripts flag when installing.

Returns:

  • (Symbol, nil)

    Use the –ignore-scripts flag when installing.



31
# File 'lib/ansible/ruby/modules/generated/packaging/language/yarn.rb', line 31

attribute :ignore_scripts

#nameString?

Returns The name of a node.js library to install,If omitted all packages in package.json are installed.

Returns:

  • (String, nil)

    The name of a node.js library to install,If omitted all packages in package.json are installed.



12
# File 'lib/ansible/ruby/modules/generated/packaging/language/yarn.rb', line 12

attribute :name

#pathString?

Returns The base path where Node.js libraries will be installed.,This is where the node_modules folder lives.

Returns:

  • (String, nil)

    The base path where Node.js libraries will be installed.,This is where the node_modules folder lives.



16
# File 'lib/ansible/ruby/modules/generated/packaging/language/yarn.rb', line 16

attribute :path

#productionSymbol?

Returns Install dependencies in production mode.,Yarn will ignore any dependencies under devDependencies in package.json.

Returns:

  • (Symbol, nil)

    Install dependencies in production mode.,Yarn will ignore any dependencies under devDependencies in package.json



35
# File 'lib/ansible/ruby/modules/generated/packaging/language/yarn.rb', line 35

attribute :production

#registryString?

Returns The registry to install modules from.

Returns:

  • (String, nil)

    The registry to install modules from.



39
# File 'lib/ansible/ruby/modules/generated/packaging/language/yarn.rb', line 39

attribute :registry

#state:present, ...

Returns Installation state of the named node.js library,If absent is selected, a name option must be provided.

Returns:

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

    Installation state of the named node.js library,If absent is selected, a name option must be provided



43
# File 'lib/ansible/ruby/modules/generated/packaging/language/yarn.rb', line 43

attribute :state

#versionString?

Returns The version of the library to be installed.,Must be in semver format. If “latest” is desired, use “state” arg instead.

Returns:

  • (String, nil)

    The version of the library to be installed.,Must be in semver format. If “latest” is desired, use “state” arg instead



20
# File 'lib/ansible/ruby/modules/generated/packaging/language/yarn.rb', line 20

attribute :version