module.exports = function () {
	console.log('Pretend I saved something!')
}

@@ -1,76 +1,1008 @@
-module.exports = function () %7B%0A%09console.log('Pretend I saved something!')
+var fs = require('fs')%0Avar basename = require('path').basename%0Avar save%0A%0Asave = module.exports = function (config, stackName, stack) %7B%0A%09if (typeof config === 'string') %7B%0A%09%09return save.call(this, undefined, config, stackName)%0A%09%7D%0A%09if (typeof config === 'undefined') %7B%0A%09%09config = this.config%0A%09%7D%0A%09if (typeof stackName === 'undefined') %7B%0A%09%09// Purge the list of stacks, and then save all of the stacks%0A%09%09fs.writeFileSync(config.path + '/stacks.list', '%5B%5D')%0A%09%09Object.keys(this.stacks).forEach(function (stackName) %7B%0A%09%09%09save.call(this, config, stackName, this.stacks%5BstackName%5D)%0A%09%09%7D, this)%0A%09%7D%0A%09else %7B%0A%09%09// Save a single stack%0A%09%09if (typeof stack === 'undefined') %7B%0A%09%09%09stack = this.stacks%5BstackName%5D%0A%09%09%7D%0A%09%09fs.writeFileSync(config.path + '/' + basename(stackName) + '.stack', JSON.stringify(stack))%0A%0A%09%09var list = this.getList()%0A%09%09if (list.indexOf(stackName) === -1) %7B%0A%09%09%09// Stack is not listed; add it to the list%0A%09%09%09list.push(stackName)%0A%09%09%09fs.writeFileSync(config.path + '/stacks.list', JSON.stringify(list))%0A%09%09%7D%0A%09%7D
 %0A%7D%0A

Make lib/save.js actually save data