Commit 0a65407c authored by Leo Iannacone's avatar Leo Iannacone

update configs to use coffeescript

parent 1b55096a
###
debomatic-webui amd64 configuration
###
architecture = "amd64"
port = 8064
# DO NOT EDIT THIS LINE:
config = require(process.env.DW + '/config/mergerconfig.coffee')(architecture, port)
/*
* debomatic-webui amd64 configuration
*/
var architecture = 'amd64';
var port = 8064;
// DO NOT EDIT THIS LINE:
module.exports = require('./mergerconfig.js')(architecture, port);
###
debomatic-webui armel configuration
###
architecture = "armel"
port = 8001
# DO NOT EDIT THIS LINE:
config = require(process.env.DW + '/config/mergerconfig.coffee')(architecture, port)
/*
* debomatic-webui armel configuration
*/
var architecture = 'armel';
var port = 8001;
// DO NOT EDIT THIS LINE:
module.exports = require('./mergerconfig.js')(architecture, port);
###
debomatic-webui armhf configuration
###
architecture = "armhf"
port = 8002
# DO NOT EDIT THIS LINE:
config = require(process.env.DW + '/config/mergerconfig.coffee')(architecture, port)
/*
* debomatic-webui armhf configuration
*/
var architecture = 'armhf';
var port = 8002;
// DO NOT EDIT THIS LINE:
module.exports = require('./mergerconfig.js')(architecture, port);
###
debomatic-webui i386 configuration
###
architecture = "i386"
port = 8083
# DO NOT EDIT THIS LINE:
config = require(process.env.DW + '/config/mergerconfig.coffee')(architecture, port)
/*
* debomatic-webui i386 configuration
*/
var architecture = 'i386';
var port = 8032;
// DO NOT EDIT THIS LINE:
module.exports = require('./mergerconfig.js')(architecture, port);
###
This is a simple function to get common config just
start from architecture and port
###
merger_config = (architecture, port) ->
# common config
config = {}
config.host = 'localhost'
config.port = port
config.web = {}
config.web.description = 'This is a web interface for debomatic over ' + architecture
config.web.debomatic = {}
config.web.debomatic.admin = {}
config.web.debomatic.admin.email = "dktrkranz AT debian DOT org" # please use this SPAMFREE form - it will be converted client side by javascript
config.web.debomatic.architecture = architecture
config.debomatic = {}
config.debomatic.path = '/srv/debomatic-' + architecture
config.debomatic.jsonfile = '/var/log/debomatic-' + architecture + '.json'
config.web.debomatic.dput = {}
config.web.debomatic.dput.incoming = config.debomatic.path
config.web.debomatic.dput.host = "debomatic-" + architecture + ".debian.net"
return config
module.exports = merger_config
/**
* This is a simple function to get common config just
* start from architecture and port
*/
function merger_config(architecture, port) {
// common config
var config = {};
config.host = 'localhost';
config.port = port;
config.web = {};
config.web.description = 'This is a web interface for debomatic over ' + architecture;
config.web.debomatic = {};
config.web.debomatic.admin = {};
config.web.debomatic.admin.email = "dktrkranz AT debian DOT org"; // please use this SPAMFREE form - it will be converted client side by javascript
config.web.debomatic.architecture = architecture;
config.debomatic = {};
config.debomatic.path = '/srv/debomatic-' + architecture;
config.debomatic.jsonfile = '/var/log/debomatic-' + architecture + '.json';
config.web.debomatic.dput = {};
config.web.debomatic.dput.incoming = config.debomatic.path;
config.web.debomatic.dput.host = "debomatic-" + architecture + ".debian.net";
return config;
}
module.exports = merger_config;
###
debomatic-webui powerpc configuration
###
architecture = "powerpc"
port = 8003
# DO NOT EDIT THIS LINE:
config = require(process.env.DW + '/config/mergerconfig.coffee')(architecture, port)
/*
* debomatic-webui powerpc configuration
*/
var architecture = 'powerpc';
var port = 8003;
// DO NOT EDIT THIS LINE:
module.exports = require('./mergerconfig.js')(architecture, port);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment