Class: Ansible::Ruby::Modules::Npm
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Npm
- 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
-
#executable ⇒ String?
The executable location for npm.,This is useful if you are using a version manager, such as nvm.
-
#global ⇒ Boolean?
Install the node.js library globally.
-
#ignore_scripts ⇒ Boolean?
Use the –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 ⇒ Boolean?
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, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#executable ⇒ String?
27 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/npm.rb', line 27 attribute :executable |
#global ⇒ Boolean?
23 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/npm.rb', line 23 attribute :global |
#ignore_scripts ⇒ Boolean?
31 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/npm.rb', line 31 attribute :ignore_scripts |
#name ⇒ String?
11 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/npm.rb', line 11 attribute :name |
#path ⇒ String?
15 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/npm.rb', line 15 attribute :path |
#production ⇒ Boolean?
35 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/npm.rb', line 35 attribute :production |
#registry ⇒ String?
39 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/npm.rb', line 39 attribute :registry |
#state ⇒ :present, ...
43 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/npm.rb', line 43 attribute :state |
#version ⇒ String?
19 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/language/npm.rb', line 19 attribute :version |