Class: Ansible::Ruby::Modules::Npm
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Npm
- 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
-
#executable ⇒ String?
The executable location for npm.,This is useful if you are using a version manager, such as nvm.
-
#global ⇒ Symbol?
Install the node.js library globally.
-
#ignore_scripts ⇒ Symbol?
Use the C(–ignore-scripts) flag when installing.
-
#name ⇒ String?
The name of a node.js library to install.
-
#path ⇒ String?
The base path where to install the node.js libraries.
-
#production ⇒ Symbol?
Install dependencies in production mode, excluding devDependencies.
-
#registry ⇒ String?
The registry to install modules from.
-
#state ⇒ :present, ...
The state of the node.js library.
-
#version ⇒ String?
The version to be installed.
Methods inherited from Base
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
#executable ⇒ String?
Returns 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 |
#global ⇒ Symbol?
Returns Install the node.js library globally.
24 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/npm.rb', line 24 attribute :global |
#ignore_scripts ⇒ Symbol?
Returns Use the C(–ignore-scripts) flag when installing.
32 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/npm.rb', line 32 attribute :ignore_scripts |
#name ⇒ String?
Returns The name of a node.js library to install.
12 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/npm.rb', line 12 attribute :name |
#path ⇒ String?
Returns 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 |
#production ⇒ Symbol?
Returns Install dependencies in production mode, excluding devDependencies.
36 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/npm.rb', line 36 attribute :production |
#registry ⇒ String?
Returns 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.
44 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/npm.rb', line 44 attribute :state |
#version ⇒ String?
Returns The version to be installed.
20 |
# File 'lib/ansible/ruby/modules/generated/packaging/language/npm.rb', line 20 attribute :version |