class PoiseApplicationJavascript::Resources::Javascript::Resource

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

@provides application_javascript @provides application_javascript_runtime @action install @action uninstall @example

application '/app' do
  javascript '3'
end

Public Instance Methods

after_created() click to toggle source

Set this resource as the app_state’s parent javascript.

@api private

Calls superclass method
# File lib/poise_application_javascript/resources/javascript.rb, line 55
def after_created
  super.tap do |val|
    app_state_javascript(self)
  end
end
npm_binary() click to toggle source

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

# File lib/poise_application_javascript/resources/javascript.rb, line 48
def npm_binary
  self.class.superclass.instance_method(:npm_binary).bind(self).call
end