'use strict';

var _ = require('lodash');

var _defaults = {
	exposeExplicitCompositeTask: false,
	exposeWithoutPrefix: false
};

var _settings = _defaults;

function get() {
	return _settings;
}

function set(options) {
	_settings = _.defaults({}, options || {}, _settings);
}

module.exports = {
	get: get,
	set: set
};

'use strict';

var _ = require('lodash');

function Settings(settings, defaults) {
	this.set(settings, defaults);
}

Settings.prototype.get = function (name) {
	if (name) {
		return this.settings[name];
	}
	return this.settings;
};

Settings.prototype.set = function (settings, defaults) {
	this.settings = _.defaults({}, settings || {}, defaults);
};

module.exports = Settings;

make settings generic