Module: RailsDotJs::Execution

Defined in:
lib/rails_dot_js/execution.rb

Instance Method Summary collapse

Instance Method Details

#daemonize_node(file) ⇒ Object



10
11
12
13
14
# File 'lib/rails_dot_js/execution.rb', line 10

def daemonize_node(file)
  Dir.chdir(fetch_config(:node_path)) do
    exec("#{node_cmd} #{file}")
  end
end

#execute_node(file) ⇒ Object



4
5
6
7
8
# File 'lib/rails_dot_js/execution.rb', line 4

def execute_node(file)
  Dir.chdir(fetch_config(:node_path)) do
    system("#{node_cmd} #{file}")
  end
end