code: function Deploy(options) {
    if (!options) {
      options = readConfig()
    }
  
    this.workspace = options.workspace
    this.deployTo = options.deployTo
    this.ignore = util.isString(options.ignore) ? [options.ignore] : options.ignore || []
    this.rules = []
  
    if (options.rules) {
      options.rules.map(this.match.bind(this))
    }
  
    this.initClient(takeServerInfo(options.server))
  }
docs: Example: new Deploy({ server: 'xiaofeng:xiaofeng@10.13.3.4:22', workspace: __dirname + '/dist', ignore: 'dist/**/*.js', deployTo: '/data1/htdocs/mizar/haha', rules: [ { test: /dist\/(.*)$/, release: 'public/static/[$1]' }, { test: /dist\/(.*)$/, release: 'public/static/[$1]' } ] })