Class: PoiseApplicationJavascript::Resources::NodePackage::Resource

Inherits:
PoiseJavascript::Resources::NodePackage::Resource
  • Object
show all
Includes:
AppMixin
Defined in:
lib/poise_application_javascript/resources/node_package.rb

Overview

An application_node_package resource to install NPM packages inside an Application cookbook deployment.

Examples:

application '/app' do
  node_package %w{grunt-cli gulp}
end

Since:

  • 1.0.0

Provides:

  • application_node_package

Actions:

  • install

  • upgrade

  • remove

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Resource

Returns a new instance of Resource.

Since:

  • 1.0.0



43
44
45
46
47
# File 'lib/poise_application_javascript/resources/node_package.rb', line 43

def initialize(*args)
  super
  # For older Chef.
  @resource_name = :application_node_package
end