lib/jobs/download-file.js
function DownloadFileJob(options, context, taskId) {
        var self = this;
        DownloadFileJob.super_.call(self, logger, options, context, taskId);

        self.nodeId = self.context.target;
        if (self.options.filePath) {
            self.options.filePath = self.options.filePath.trim();
            if (_.last(self.options.filePath) === '/') {
                self.options.filePath = self.options.filePath.substring(0, self.options.filePath.length - 1);
            }
        }
    }
function DownloadFileJob(options, context, taskId) {
        var self = this;
        DownloadFileJob.super_.call(self, logger, options, context, taskId);

        self.nodeId = self.context.target;
        if (self.options.filePath) {
            self.options.filePath = self.options.filePath.trim();
            if (_.last(self.options.filePath) === '/') {
                self.options.filePath = self.options.filePath.substring(0, self.options.filePath.length - 1);
            }
        }
    }
function DownloadFileJob ( options , context , taskId ) { var self = this ; DownloadFileJob . super_ . call ( self , logger , options , context , taskId ) ; self . nodeId = self . context . target ; if ( self . options . filePath ) { self . options . filePath = self . options . filePath . trim ( ) ; if ( _ . last ( self . options . filePath ) === '/' ) { self . options . filePath = self . options . filePath . substring ( 0 , self . options . filePath . length - 1 ) ; } } }
This job will fetch a file from some repository

@param {Object} options
@param {Object} context
@param {String} taskId
@constructor
This job will fetch a file from some repository