tasks/download.js
function () {
            // ensures the uncompressed Orchard code is inside the version directory
            // inside directory that contains local Orchard install. This is to
            // ensure a directory structure like `/local/1.8.1/Orchard-1.8.1`
            // doesn't occur becuase the download zip contents is within it's
            // own directory.
            var contents = helpers.getDirectories(options.tempDir),
                currentDirName = (contents.length === 1) ? path.join(options.tempDir, contents[0]) : options.tempDir;

            mv(currentDirName, options.localDir, {mkdirp: true}, function() {
                cleanUp(done);
            });
        }
function () {
            // ensures the uncompressed Orchard code is inside the version directory
            // inside directory that contains local Orchard install. This is to
            // ensure a directory structure like `/local/1.8.1/Orchard-1.8.1`
            // doesn't occur becuase the download zip contents is within it's
            // own directory.
            var contents = helpers.getDirectories(options.tempDir),
                currentDirName = (contents.length === 1) ? path.join(options.tempDir, contents[0]) : options.tempDir;

            mv(currentDirName, options.localDir, {mkdirp: true}, function() {
                cleanUp(done);
            });
        }
function ( ) { // ensures the uncompressed Orchard code is inside the version directory // inside directory that contains local Orchard install. This is to // ensure a directory structure like `/local/1.8.1/Orchard-1.8.1` // doesn't occur becuase the download zip contents is within it's // own directory. var contents = helpers . getDirectories ( options . tempDir ) , currentDirName = ( contents . length === 1 ) ? path . join ( options . tempDir , contents [ 0 ] ) : options . tempDir ; mv ( currentDirName , options . localDir , { mkdirp : true } , function ( ) { cleanUp ( done ) ; } ) ; }
Moves extract files into directory that reflects the version number.
Moves extract files into directory that reflects the version number .