Class: Utilikilt::NodeProxy
- Inherits:
-
Object
- Object
- Utilikilt::NodeProxy
- Defined in:
- lib/utilikilt/node_proxy.rb
Constant Summary collapse
- NODE_DIR =
File.join( File.dirname(__FILE__), '..','..', 'node_modules', 'utilikilt' )
Instance Method Summary collapse
-
#initialize(serve_dir) ⇒ NodeProxy
constructor
A new instance of NodeProxy.
- #launch_server ⇒ Object
Constructor Details
#initialize(serve_dir) ⇒ NodeProxy
Returns a new instance of NodeProxy.
5 6 7 |
# File 'lib/utilikilt/node_proxy.rb', line 5 def initialize( serve_dir ) @serve_dir = File.(serve_dir) end |
Instance Method Details
#launch_server ⇒ Object
9 10 11 |
# File 'lib/utilikilt/node_proxy.rb', line 9 def launch_server system 'node_modules/.bin/coffee', 'lib/uk.coffee', @serve_dir, {:chdir => NODE_DIR} end |