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

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

Instance Method Summary collapse

Methods inherited from Base

#to_h

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

attr_option, attr_options, attribute, #initialize, #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



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

attribute :executable

#globalBoolean?

Returns Install the node.js library globally.

Returns:

  • (Boolean, nil)

    Install the node.js library globally



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

attribute :global

#ignore_scriptsBoolean?

Returns Use the –ignore-scripts flag when installing.

Returns:

  • (Boolean, nil)

    Use the –ignore-scripts flag when installing.



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

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



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

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



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

attribute :path

#productionBoolean?

Returns Install dependencies in production mode, excluding devDependencies.

Returns:

  • (Boolean, nil)

    Install dependencies in production mode, excluding devDependencies



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

attribute :production

#registryString?

Returns The registry to install modules from.

Returns:

  • (String, nil)

    The registry to install modules from.



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

attribute :registry

#state:present, ...

Returns The state of the node.js library.

Returns:

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

    The state of the node.js library



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

attribute :state

#versionString?

Returns The version to be installed.

Returns:

  • (String, nil)

    The version to be installed



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

attribute :version