index.js
function(name, config) {
        if (!config && typeof name === 'string' || utils.isObject(name)) {
          return this.getScaffold(name);
        }

        this.setScaffold.apply(this, arguments);
        if (typeof name === 'string') {
          return this.getScaffold(name);
        }
        return this;
      }
function(name, config) {
        if (!config && typeof name === 'string' || utils.isObject(name)) {
          return this.getScaffold(name);
        }

        this.setScaffold.apply(this, arguments);
        if (typeof name === 'string') {
          return this.getScaffold(name);
        }
        return this;
      }
function ( name , config ) { if ( ! config && typeof name === 'string' || utils . isObject ( name ) ) { return this . getScaffold ( name ) ; } this . setScaffold . apply ( this , arguments ) ; if ( typeof name === 'string' ) { return this . getScaffold ( name ) ; } return this ; }
Get scaffold `name` from `app.scaffolds`, or set scaffold `name` with the given
`config`.

```js
app.scaffold('foo', {
docs: {
options: {},
files: {
src: ['*'],
dest: 'foo'
}
}
});

// or
var scaffold = app.scaffold('foo');
```
@name .scaffold
@param {String|Object|Function} `name`
@param {Object|Fucntion} `config`
@return {Object} Returns the app instance when setting a scaffold, or the scaffold instance when getting a scaffold.
@api public
Get scaffold name from app . scaffolds or set scaffold name with the given config .