title: Gulp 4 Split Tasks Across Multiple Files Using Gulp-Hub Fails Due to Missing Get Function
body: <p>Using Gulp 4 and the <a href="https://github.com/gulpjs/gulp/blob/4.0/docs/recipes/split-tasks-across-multiple-files.md" rel="noreferrer">recipe</a> for splitting my tasks into multiple files using gulp-hub throws this error just from attempting to load the task files. The task file is super simple just wanted to test everything was working.</p>
  
  <p>I found this reference on Undertaker on Github for the <a href="https://github.com/gulpjs/undertaker-registry#gettaskname--function" rel="noreferrer">get</a> function, but I really don't understand what they are trying to say, and it seems like gulp-hub is supposed to be doing the lifting.</p>
  
  <p>Anyone else run into this and know how to solve it?</p>
  
  <p><strong>Gulp File</strong></p>
  
  <pre><code>'use strict';
  
  var gulp = require('gulp');
  
  var HubRegistry = require('gulp-hub');
  
  // Load some files into the registry
  var hub = new HubRegistry(['gulp/tasks/*.js']); // only one file help.js
  
  // Tell gulp to use the tasks just loaded
  gulp.registry(hub);
  </code></pre>
  
  <p><strong>Help Task - /gulp/tasks/help.js</strong></p>
  
  <pre><code>'use strict';
  
  var gulp = require('gulp');
  
  gulp.task('help', []);
  </code></pre>
  
  <p><strong>Error Thrown</strong></p>
  
  <pre><code>$ gulp help
  [01:36:37] Loading gulp\tasks\help.js
  
  D:\projects\app\node_modules\undertaker\lib\helpers\validateRegistry.js:36
        throw err;
        ^
   AssertionError: Custom registry must have `get` function
      at validateRegistry (D:\projects\app\node_modules\undertaker\lib\helpers\validateRegistry.js:28:5)
      at Gulp.registry (D:\projects\app\node_modules\undertaker\lib\registry.js:17:3)
      at Object.&lt;anonymous&gt; (D:\projects\app\gulpfile.js:11:6)
      at Module._compile (module.js:541:32)
      at Object.Module._extensions..js (module.js:550:10)
      at Module.load (module.js:458:32)
      at tryModuleLoad (module.js:417:12)
      at Function.Module._load (module.js:409:3)
      at Module.require (module.js:468:17)
      at require (internal/module.js:20:19)
  </code></pre>