Module: Isomorfeus
- Defined in:
- lib/isomorfeus/speednode/config.rb,
lib/isomorfeus/speednode/runtime.rb,
lib/isomorfeus/speednode/version.rb,
lib/isomorfeus/speednode/runtime/vm.rb,
lib/isomorfeus/speednode/attach_pipe.rb,
lib/isomorfeus/speednode/node_command.rb,
lib/isomorfeus/speednode/attach_socket.rb,
lib/isomorfeus/speednode/runtime/context.rb,
lib/isomorfeus/speednode/runtime/vm_command.rb
Defined Under Namespace
Modules: Speednode
Class Attribute Summary collapse
-
.node_paths ⇒ Object
Returns the value of attribute node_paths.
Class Method Summary collapse
Class Attribute Details
.node_paths ⇒ Object
Returns the value of attribute node_paths.
3 4 5 |
# File 'lib/isomorfeus/speednode/config.rb', line 3 def node_paths @node_paths end |
Class Method Details
.set_node_paths ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/isomorfeus/speednode/config.rb', line 5 def set_node_paths np_sep = Gem.win_platform? ? ';' : ':' existing_node_path = ENV['NODE_PATH'] temp_node_path = '' if existing_node_path.nil? || existing_node_path.empty? temp_node_path = Isomorfeus.node_paths.join(np_sep) else if existing_node_path.end_with?(np_sep) temp_node_path = existing_node_path + Isomorfeus.node_paths.join(np_sep) else temp_node_path = existing_node_path + np_sep + Isomorfeus.node_paths.join(np_sep) end end ENV['NODE_PATH'] = temp_node_path.split(np_sep).uniq.join(np_sep) end |