This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nutIoc = require('nut-ioc'); | |
const nutIocContainer = nutIoc(); | |
const mainAsync = async () => { | |
nutIocContainer.useDependency({ | |
IsInterceptor: true, | |
ServiceName: "errorInterceptor", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
Namespace: "", | |
ServiceName: "", //fileName if empty,null or undefine | |
Service: ({ }) => { | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nutIoc = require('nut-ioc'); | |
const nutIocContainer = nutIoc(); | |
const mainAsync = async () => { | |
nutIocContainer.useDependency({ | |
IsInterceptor: true, | |
ServiceName: "errorInterceptor", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nutIoc = require('nut-ioc'); | |
const nutIocContainer = nutIoc(); | |
const mainAsync = async () => { | |
const ignoredDependencies = ['node_modules', | |
'.env', | |
'*.json', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nutIoc = require('nut-ioc'); | |
const nutIocContainer = nutIoc(); | |
const mainAsync = async () => { | |
nutIocContainer.useDependency({ | |
ServiceName: "authorBasicInfo", | |
Service: ({ firstName: "Kenan", lastName: "Hancer" }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.ServiceName = ""; //fileName if empty,null or undefined | |
module.exports.Service = ({ helper }) => | |
({ | |
sayHello: ({ firstName, lastName }) => { | |
const fullName = helper.getFullName({ firstName, lastName }); | |
return `Hello ${fullName}`; | |
}, | |
sayGoodbye: ({ firstName, lastName }) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.Service = ({ helper }) => | |
({ | |
sayHello: ({ firstName, lastName }) => { | |
const fullName = helper.getFullName({ firstName, lastName }); | |
return `Hello ${fullName}`; | |
}, | |
sayGoodbye: ({ firstName, lastName }) => { | |
const fullName = helper.getFullName({ firstName, lastName }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.ServiceName = ""; //fileName if empty,null or undefined | |
module.exports.Namespace = ""; //if empty, then consume helper dependency with name directly | |
module.exports.Service = ({ | |
getFullName: ({ firstName, lastName }) => { | |
return `${firstName} ${lastName}`; | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const helper = require('./helper'); | |
const greetingService = { | |
sayHello: ({ firstName, lastName }) => { | |
const fullName = helper.getFullName({ firstName, lastName }); | |
return `Hello ${fullName}`; | |
}, | |
sayGoodbye: ({ firstName, lastName }) => { | |
const fullName = helper.getFullName({ firstName, lastName }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
servers = [ | |
{ | |
:name => "k8s-master-node", | |
:type => "master", | |
:box => "ubuntu/xenial64", | |
:box_version => "20180831.0.0", | |
:eth1 => "192.168.205.10", |
NewerOlder