Class: PoiseJavascript::Resources::NodePackage::Resource
- Inherits:
-
Chef::Resource::Package
- Object
- Chef::Resource::Package
- PoiseJavascript::Resources::NodePackage::Resource
- Includes:
- JavascriptCommandMixin
- Defined in:
- lib/poise_javascript/resources/node_package.rb
Overview
A node_package
resource to manage Node.js packages using npm.
Instance Attribute Summary collapse
-
#group ⇒ String, ...
System group to install the package.
-
#path ⇒ String, ...
Path to install the package in to.
-
#unsafe_perm ⇒ Boolean?
Enable --unsafe-perm.
-
#user ⇒ String, ...
System user to install the package.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(*args) ⇒ Resource
Returns a new instance of Resource.
67 68 69 70 71 72 73 74 |
# File 'lib/poise_javascript/resources/node_package.rb', line 67 def initialize(*args) super # For older Chef. @resource_name = :node_package # We don't have these actions. @allowed_actions.delete(:purge) @allowed_actions.delete(:reconfig) end |
Instance Attribute Details
#group ⇒ String, ...
System group to install the package.
53 |
# File 'lib/poise_javascript/resources/node_package.rb', line 53 attribute(:group, kind_of: [String, Integer, NilClass]) |
#path ⇒ String, ...
Path to install the package in to. If unset install using --global.
57 |
# File 'lib/poise_javascript/resources/node_package.rb', line 57 attribute(:path, kind_of: [String, NilClass, FalseClass]) |
#unsafe_perm ⇒ Boolean?
Enable --unsafe-perm.
61 |
# File 'lib/poise_javascript/resources/node_package.rb', line 61 attribute(:unsafe_perm, equal_to: [true, false, nil], default: true) |
#user ⇒ String, ...
System user to install the package.
65 |
# File 'lib/poise_javascript/resources/node_package.rb', line 65 attribute(:user, kind_of: [String, Integer, NilClass]) |