Class: PoiseApplicationJavascript::Resources::Javascript::Resource

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

Overview

An application_javascript resource to manage Javascript runtimes inside an Application cookbook deployment.

Examples:

application '/app' do
  javascript '3'
end

Since:

  • 1.0.0

Provides:

  • application_javascript

  • application_javascript_runtime

Actions:

  • install

  • uninstall

Instance Method Summary collapse

Instance Method Details

#npm_binaryObject

We want to run the base class version of this, not the one from the mixin. HULK SMASH.

Since:

  • 1.0.0



48
49
50
# File 'lib/poise_application_javascript/resources/javascript.rb', line 48

def npm_binary
  self.class.superclass.instance_method(:npm_binary).bind(self).call
end