28 строки
681 B
Plaintext
28 строки
681 B
Plaintext
<% // This file contains the preamble for mock recordings, as an underscore template
|
|
|
|
// Helper function to handle possibly null values
|
|
function q(value) {
|
|
if (value === null) {
|
|
return 'null';
|
|
} else {
|
|
return '\'' + value + '\'';
|
|
}
|
|
}
|
|
|
|
%>// This file has been autogenerated.
|
|
|
|
exports.setEnvironment = function() {
|
|
<% requiredEnvironment.forEach(function (e) {
|
|
var value;
|
|
if (e.secure && typeof e.secure === 'function') {
|
|
value = q(e.secure(process.env[e.name]));
|
|
} else if (e.secure) {
|
|
value = q('dummy');
|
|
} else {
|
|
value = q(process.env[e.name]);
|
|
}
|
|
%> process.env[<%= q(e.name) %>] = <%= value %>;
|
|
<% });
|
|
%>};
|
|
|
|
exports.scopes = [ |