Class: PoiseJavascript::JavascriptProviders::Base
- Inherits:
-
Chef::Provider
- Object
- Chef::Provider
- PoiseJavascript::JavascriptProviders::Base
- Defined in:
- lib/poise_javascript/javascript_providers/base.rb
Overview
Instance Method Summary collapse
-
#action_install
The
install
action for thejavascript_runtime
resource. -
#action_uninstall
abstract
The
uninstall
action for thejavascript_runtime
resource. -
#javascript_binary ⇒ String
abstract
The path to the
javascript
binary. -
#javascript_environment ⇒ Hash<String, String>
The environment variables for this Javascript.
-
#npm_binary ⇒ String
abstract
The path to the
npm
binary.
Instance Method Details
#action_install
This method returns an undefined value.
The install
action for the javascript_runtime
resource.
38 39 40 41 42 |
# File 'lib/poise_javascript/javascript_providers/base.rb', line 38 def action_install do install_javascript end end |
#action_uninstall
This method is abstract.
This method returns an undefined value.
The uninstall
action for the javascript_runtime
resource.
48 49 50 51 52 |
# File 'lib/poise_javascript/javascript_providers/base.rb', line 48 def action_uninstall do uninstall_javascript end end |
#javascript_binary ⇒ String
This method is abstract.
The path to the javascript
binary. This is an output property.
58 59 60 |
# File 'lib/poise_javascript/javascript_providers/base.rb', line 58 def javascript_binary raise NotImplementedError end |
#javascript_environment ⇒ Hash<String, String>
The environment variables for this Javascript. This is an output property.
65 66 67 |
# File 'lib/poise_javascript/javascript_providers/base.rb', line 65 def javascript_environment {} end |
#npm_binary ⇒ String
This method is abstract.
The path to the npm
binary. This is an output property.
73 74 75 |
# File 'lib/poise_javascript/javascript_providers/base.rb', line 73 def npm_binary ::File.(::File.join('..', 'npm'), javascript_binary) end |