class PoiseJavascript::Resources::NodePackage::Resource

A `node_package` resource to manage Node.js packages using npm.

@provides node_package @action install @action upgrade @action uninstall @example

node_package 'express' do
  javascript '0.10'
  version '1.8.3'
end

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# 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

Public Instance Methods

response_file(arg=nil) click to toggle source

Upstream attribute we don't support. Sets are an error and gets always return nil.

@api private @param arg [Object] Ignored @return [nil]

# File lib/poise_javascript/resources/node_package.rb, line 82
def response_file(arg=nil)
  raise NoMethodError if arg
end
response_file_variables(arg=nil) click to toggle source

(see response_file)

# File lib/poise_javascript/resources/node_package.rb, line 87
def response_file_variables(arg=nil)
  raise NoMethodError if arg && arg != {}
end