Class: Ansible::Ruby::Modules::Npm

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

Overview

Manage node.js packages with Node Package Manager (npm)

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

#executableString?

Returns The executable location for npm.,This is useful if you are using a version manager, such as nvm.

Returns:

  • (String, nil)

    The executable location for npm.,This is useful if you are using a version manager, such as nvm



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

attribute :executable

#globalBoolean?

Returns Install the node.js library globally.

Returns:

  • (Boolean, nil)

    Install the node.js library globally



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

attribute :global

#ignore_scriptsBoolean?

Returns Use the –ignore-scripts flag when installing.

Returns:

  • (Boolean, nil)

    Use the –ignore-scripts flag when installing.



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

attribute :ignore_scripts

#nameString?

Returns The name of a node.js library to install.

Returns:

  • (String, nil)

    The name of a node.js library to install



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

attribute :name

#pathString?

Returns The base path where to install the node.js libraries.

Returns:

  • (String, nil)

    The base path where to install the node.js libraries



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

attribute :path

#productionBoolean?

Returns Install dependencies in production mode, excluding devDependencies.

Returns:

  • (Boolean, nil)

    Install dependencies in production mode, excluding devDependencies



35
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/npm.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/extras/packaging/language/npm.rb', line 39

attribute :registry

#state:present, ...

Returns The state of the node.js library.

Returns:

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

    The state of the node.js library



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

attribute :state

#versionString?

Returns The version to be installed.

Returns:

  • (String, nil)

    The version to be installed



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

attribute :version