Created
October 29, 2014 16:33
-
-
Save nuxlli/e206e03eb25a0a583ef9 to your computer and use it in GitHub Desktop.
Arquitetura de julgamento do generator do azk
This file contains 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
// 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