(data)
| 13 | var shells_rpc = imports.shells_rpc; |
| 14 | |
| 15 | var getShell = function(data) { |
| 16 | if(shells.shells[data.shellId]) { |
| 17 | return Q(shells.attach(data.shellId)); |
| 18 | } |
| 19 | return shells.createShell(data.shellId, data.opts) |
| 20 | }; |
| 21 | |
| 22 | events.on('shell.spawn', function(data) { |
| 23 | return shells.shells[data.shellId].ps.pause(); |