/**
  * Load a file or its contents if a folder.
  *
  * @param string $handle
  */
 protected function loadFileOrFolder($handle)
 {
     // Bind ourselves into the facade to avoid automatic resolution
     Facades\Rocketeer::setFacadeApplication($this->app);
     // If we have one unified tasks file, include it
     $file = $this->app['path.rocketeer.' . $handle];
     if (!is_dir($file) && file_exists($file) && $file !== 'strategies.php') {
         include $file;
     } elseif (is_dir($file)) {
         $folder = glob($file . DS . '*.php');
         foreach ($folder as $file) {
             include $file;
         }
     }
 }
 /**
  * Load a file or its contents if a folder
  *
  * @param Container $app
  * @param string    $handle
  *
  * @return Container
  */
 protected function loadFileOrFolder(Container $app, $handle)
 {
     // Bind ourselves into the facade to avoid automatic resolution
     Facades\Rocketeer::setFacadeApplication($app);
     // If we have one unified tasks file, include it
     $file = $app['path.rocketeer.' . $handle];
     if (!is_dir($file) and file_exists($file)) {
         include $file;
     } elseif (is_dir($file)) {
         $folder = glob($file . '/*.php');
         foreach ($folder as $file) {
             include $file;
         }
     }
     return $app;
 }