server.js 634 Bytes
/**
 * 
 */

'use strict';

const Model = require('./model');

class Server extends Model {
    constructor() {
        super('servers');
    }

    findByHost(host) {
        return this.findOne({
            host: host
        });
    }

    _seeds() {
        return [{
            host: '192.168.102.168',
            username: 'root',
            password: '123456',
            port: 22, //default
            tag: 'Test'
        }, {
            host: '192.168.102.162',
            username: 'yoho',
            password: 'yoho@9646',
            port: 22,
            tag: 'Prod'
        }];
    }
}

module.exports = Server;