Class: Utilikilt::NodeProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/utilikilt/node_proxy.rb

Constant Summary collapse

NODE_DIR =
File.join( File.dirname(__FILE__), '..','..', 'node_modules', 'utilikilt' )

Instance Method Summary collapse

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.expand_path(serve_dir)
end

Instance Method Details

#launch_serverObject



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