Skip to content

Instantly share code, notes, and snippets.

@nuxlli
Created October 29, 2014 16:33
Show Gist options
  • Save nuxlli/e206e03eb25a0a583ef9 to your computer and use it in GitHub Desktop.
Save nuxlli/e206e03eb25a0a583ef9 to your computer and use it in GitHub Desktop.
Arquitetura de julgamento do generator do azk
// rails 4, node.js, mysql
/*
Rules = investigator + jury
Generator.detect [
[Rules].investigate();
Generator.judgment();
[Rules].verdict();
]
*/
var evidences = {
"./front": {
ruby : { type: "runtime", data: { version: "2.0" } },
node : { type: "runtime", data: { version: "0.10.30" } },
rails: {
replaces: ["ruby", "node"],
type: "framework",
data: { version: "4.1" },
},
mysql: { type: "database", data: { version: "x.p.o", databasename: "" } },
},
"./api": {
node: { type: "runtime", data: { version: "0.10.30" } },
mysql: { type: "database", data: { version: "x.p.o", databasename: "" } },
}
},
// Verdict
systems = {
front: {
depends: ["mysql"],
images: "rails4.1",
},
api: {
depends: ["mysql"],
images: "dockerfile/nodejs",
},
mysql: {
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment