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

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



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

attribute :global

#ignore_scriptsSymbol?

Returns Use the C(–ignore-scripts) flag when installing.

Returns:

  • (Symbol, nil)

    Use the C(–ignore-scripts) flag when installing.



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

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



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

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



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

attribute :path

#productionSymbol?

Returns Install dependencies in production mode, excluding devDependencies.

Returns:

  • (Symbol, nil)

    Install dependencies in production mode, excluding devDependencies



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

attribute :production

#registryString?

Returns The registry to install modules from.

Returns:

  • (String, nil)

    The registry to install modules from.



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

attribute :registry

#state:present, ...

Returns The state of the node.js library.

Returns:

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

    The state of the node.js library



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

attribute :state

#versionString?

Returns The version to be installed.

Returns:

  • (String, nil)

    The version to be installed



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

attribute :version