'use babel'

import Cluster from 'cluster'
import ChildProcess from 'child_process'
import {Communication} from './communication'

export function current() {
  return new Communication(process)
}

export function process(process) {
  return new Communication(process)
}

export function fork(env) {
  return new Communication(Cluster.fork(env || process.env))
}

export function forkFile(filePath, args = [], options = {}) {
  return new Communication(ChildProcess.fork(filePath, args, options))
}

export {Communication}

@@ -145,14 +145,13 @@
 on c
-urrent
+reate
 () %7B
@@ -206,17 +206,27 @@
 unction 
-p
+createFromP
 rocess(p

Rename a few methods in main