gina 0.1.1-alpha.117 → 0.1.1-alpha.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -21
- package/bin/cli +57 -10
- package/bin/cmd +18 -2
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/AUTHORS +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/LICENSE +0 -0
- package/framework/v0.1.1-alpha.118/VERSION +1 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/html/nolayout.html +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/html/static.html +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/img/android-chrome-192x192.png +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/img/android-chrome-512x512.png +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/img/apple-touch-icon.png +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/img/favicon-16x16.png +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/img/favicon-32x32.png +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/img/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/gina.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/gina.js.map +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/gina.min.css +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/gina.min.css.map +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/gina.min.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/gina.min.js.map +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/gina.onload.min.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/gina.onload.min.js.map +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/toolbar/css/toolbar-min.css +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/toolbar/css/toolbar.css +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/toolbar/css/toolbar.css.map +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/toolbar/js/jquery-3.1.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/toolbar/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/dist/toolbar/toolbar.html +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/readme.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/asset/plugin/uuid.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/config.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/connectors/couchbase/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/connectors/couchbase/lib/connector.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/connectors/couchbase/lib/connector.v2.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/connectors/couchbase/lib/n1ql.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/connectors/couchbase/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/controller/controller.framework.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/controller/controller.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/controller/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/deps/busboy/.travis.yml +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/deps/busboy/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/deps/busboy/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/deps/busboy/deps/encoding/encoding.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/deps/busboy/lib/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/deps/busboy/lib/types/multipart.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/deps/busboy/lib/types/urlencoded.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/deps/busboy/lib/utils.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/deps/busboy/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/dev/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/dev/lib/class.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/dev/lib/factory.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/dev/lib/tools.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/gna.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/locales/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/locales/currency.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/locales/dist/language/en.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/locales/dist/language/fr.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/locales/dist/region/en.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/locales/dist/region/fr.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/locales/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/locales/src/make.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/locales/src/resources/currency.csv +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/locales/src/resources/region.csv +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/locales/src/resources/region.mapping.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/mime.types +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/model/entity.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/model/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/model/template/entityFactory.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/model/template/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/file/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/file/build.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/file/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/intl/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/intl/build.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/intl/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/intl/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/storage/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/storage/build.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/storage/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/storage/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/validator/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/validator/build.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/validator/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/validator/src/form-validator.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/plugins/lib/validator/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/router.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/server.express.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/server.isaac.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/server.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/status.codes +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle/config/app.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle/config/routing.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle/config/settings.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle/config/templates.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle_public/readme.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/command/gina.bat.tpl +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/command/gina.tpl +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/conf/env.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/conf/manifest.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/conf/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/conf/settings.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/conf/statics.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/conf/templates.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/error/client/json/401.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/error/client/json/403.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/error/client/json/404.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/error/server/html/50x.html +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/error/server/json/500.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/error/server/json/503.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/extensions/logger/config.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/console.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/context.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/dateFormat.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/json/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/json/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/json/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/path.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/plugins/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/plugins/src/api-error.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/plugins/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/prototypes.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/task.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/helpers/text.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/archiver/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/archiver/build.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/archiver/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/archiver/src/dep/jszip.min.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/archiver/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/aliases.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/add.js +1 -3
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/copy.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/cp.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/help.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/help.txt +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/list.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/remove.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/rename.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/restart.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/rm.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/start.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/status.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/bundle/stop.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/env/add.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/env/get.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/env/help.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/env/help.txt +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/env/link-dev.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/env/list.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/env/remove.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/env/rm.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/env/set.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/env/unset.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/env/use.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/build.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/dot.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/get.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/help.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/help.txt +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/init.js +22 -1
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/msg.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/open.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/restart.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/set.js +52 -19
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/start.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/status.js +3 -1
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/stop.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/tail.js +6 -3
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/update.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/framework/version.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/gina-dev.1.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/gina-framework.1.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/gina.1.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/helper.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/index.js +21 -21
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/msg.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/port/help.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/port/help.txt +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/port/inc/scan.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/port/list.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/port/set.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/add.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/build.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/help.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/help.txt +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/import.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/list.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/move.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/remove.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/rename.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/restart.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/rm.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/start.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/status.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/project/stop.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/protocol/help.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/protocol/help.txt +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/protocol/list.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/protocol/set.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/scope/help.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/scope/help.txt +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/scope/link-local.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/scope/list.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/scope/remove.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/scope/rm.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/scope/set.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/scope/unset.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/scope/use.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cmd/view/add.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/collection/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/collection/build.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/collection/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/collection/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/config.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cron/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cron/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/cron/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/generator/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/inherits/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/inherits/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/inherits/example/protected_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/inherits/example/simple_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/inherits/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/inherits/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/logger/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/logger/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/logger/src/containers/default/index.js +0 -2
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/logger/src/containers/file/index.js +8 -6
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/logger/src/containers/mq/index.js +1 -1
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/logger/src/containers/mq/listener.js +16 -14
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/logger/src/containers/mq/speaker.js +4 -2
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/logger/src/helper.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/logger/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/math/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/merge/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/merge/example/merge.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/merge/example/merge_2_literal objects.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/merge/example/merge_and_preserve_first.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/merge/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/merge/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/model.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/proc.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/routing/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/routing/build.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/routing/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/routing/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/shell.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/swig-filters/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/swig-filters/package.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/swig-filters/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/url/README.md +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/url/index.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/url/mocks.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/url/routing.json +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/url/test.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/lib/validator.js +0 -0
- package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/package.json +0 -0
- package/package.json +2 -2
- package/resources/home/settings.json +3 -0
- package/utils/helper.js +3 -3
- package/framework/v0.1.1-alpha.117/VERSION +0 -1
package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/error/server/html/50x.html
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/error/server/json/500.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/error/server/json/503.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.117 → v0.1.1-alpha.118}/core/template/extensions/logger/config.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -132,7 +132,6 @@ function Add(opt, cmd) {
|
|
|
132
132
|
if ( typeof(self.projectData.bundles[local.bundle]) != 'undefined' ) {
|
|
133
133
|
|
|
134
134
|
if ( /\-\-(import|replace)/.test(opt.argv.join(',')) ) {
|
|
135
|
-
console.debug('Special case detected '+ opt.argv);
|
|
136
135
|
var pArr = null
|
|
137
136
|
, importModeEnabled = false
|
|
138
137
|
, replaceModeEnabled = false
|
|
@@ -150,13 +149,12 @@ function Add(opt, cmd) {
|
|
|
150
149
|
if (importModeEnabled) {
|
|
151
150
|
local.envFileSaved = true;
|
|
152
151
|
makeBundle(local.bundle, false);
|
|
153
|
-
return;
|
|
154
152
|
}
|
|
155
153
|
|
|
156
154
|
if (replaceModeEnabled) {
|
|
157
155
|
makeBundle(local.bundle, true);
|
|
158
|
-
return;
|
|
159
156
|
}
|
|
157
|
+
return;
|
|
160
158
|
}
|
|
161
159
|
|
|
162
160
|
rl.setPrompt('Bundle [ '+ local.bundle +' ] already exists !\n(r) Replace - All existing files will be lost !\n(c) Cancel\n(i) Import\n> ');
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -29,7 +29,7 @@ function Initialize(opt) {
|
|
|
29
29
|
if( typeof(self[t]) == 'function') {
|
|
30
30
|
var func = 'self.' + t + '()';
|
|
31
31
|
console.debug('Running [ ' + func + ' ]');
|
|
32
|
-
eval(func)
|
|
32
|
+
eval(func);// jshint ignore:line
|
|
33
33
|
++i
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -371,6 +371,21 @@ function Initialize(opt) {
|
|
|
371
371
|
setEnvVar('GINA_DEBUG_PORT', ~~localUserSettings.debug_port);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
+
if ( !getEnvVar('GINA_MQ_PORT') && targetObj.existsSync() ) {
|
|
375
|
+
if ( typeof(localUserSettings.mq_port) != 'undefined' ) {
|
|
376
|
+
setEnvVar('GINA_MQ_PORT', ~~localUserSettings.mq_port);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
if ( !getEnvVar('GINA_HOST_V4') && targetObj.existsSync() ) {
|
|
380
|
+
if ( typeof(localUserSettings.host_v4) != 'undefined' ) {
|
|
381
|
+
setEnvVar('GINA_HOST_V4', localUserSettings.host_v4);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
if ( !getEnvVar('GINA_HOSTNAME') && targetObj.existsSync() ) {
|
|
385
|
+
if ( typeof(localUserSettings.hostname) != 'undefined' ) {
|
|
386
|
+
setEnvVar('GINA_HOSTNAME', localUserSettings.hostname);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
374
389
|
|
|
375
390
|
|
|
376
391
|
// updated on framework start : you never know which user is going to start gina (root ? sudo ? regular user)
|
|
@@ -401,6 +416,9 @@ function Initialize(opt) {
|
|
|
401
416
|
'node_version': process.version,
|
|
402
417
|
'port' : getEnvVar('GINA_PORT') || 8124, // TODO - scan for the next available port
|
|
403
418
|
'debug_port' : getEnvVar('GINA_DEBUG_PORT') || process.debugPort || 5757,
|
|
419
|
+
'host_v4' : getEnvVar('GINA_HOST_V4') || '127.0.0.1',
|
|
420
|
+
'mq_port' : getEnvVar('GINA_MQ_PORT') || 8125,
|
|
421
|
+
'hostname' : getEnvVar('GINA_HOSTNAME') || 'localhost',
|
|
404
422
|
'user' : process.env.USER,
|
|
405
423
|
'uid' : uid,
|
|
406
424
|
'gid' : gid,
|
|
@@ -418,6 +436,9 @@ function Initialize(opt) {
|
|
|
418
436
|
|
|
419
437
|
setEnvVar('GINA_PORT', settings['port']);
|
|
420
438
|
setEnvVar('GINA_DEBUG_PORT', settings['debug_port']);
|
|
439
|
+
// setEnvVar('GINA_MQ_PORT', settings['mq_port']);
|
|
440
|
+
// setEnvVar('GINA_HOST_V4', settings['host_v4']);
|
|
441
|
+
// setEnvVar('GINA_HOSTNAME', settings['hostname']);
|
|
421
442
|
setEnvVar('GINA_ENV_IS_DEV', settings['env_is_dev']);
|
|
422
443
|
setEnvVar('GINA_SCOPE_IS_LOCAL', settings['scope_is_local']);
|
|
423
444
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -57,12 +57,26 @@ function Set(opt){
|
|
|
57
57
|
break;
|
|
58
58
|
|
|
59
59
|
case '--port':
|
|
60
|
-
|
|
60
|
+
setKeyVal('port', ~~v);
|
|
61
61
|
break;
|
|
62
62
|
|
|
63
63
|
case '--debug_port':
|
|
64
64
|
case '--debug-port':
|
|
65
|
-
|
|
65
|
+
setKeyVal('debug_port', ~~v);
|
|
66
|
+
break;
|
|
67
|
+
|
|
68
|
+
case '--mq_port':
|
|
69
|
+
case '--mq-port':
|
|
70
|
+
setKeyVal('mq_port', ~~v);
|
|
71
|
+
break;
|
|
72
|
+
|
|
73
|
+
case '--host_v4':
|
|
74
|
+
case '--host-v4':
|
|
75
|
+
setKeyVal('host_v4', v);
|
|
76
|
+
break;
|
|
77
|
+
|
|
78
|
+
case '--hostname':
|
|
79
|
+
setKeyVal('hostname', v);
|
|
66
80
|
break;
|
|
67
81
|
|
|
68
82
|
case '--timezone':
|
|
@@ -77,6 +91,24 @@ function Set(opt){
|
|
|
77
91
|
}
|
|
78
92
|
}
|
|
79
93
|
|
|
94
|
+
/**
|
|
95
|
+
* setKeyVal
|
|
96
|
+
* Generic method
|
|
97
|
+
* @param {string} key
|
|
98
|
+
* @param {string|number|boolean} value
|
|
99
|
+
*/
|
|
100
|
+
var setKeyVal = function(key, value) {
|
|
101
|
+
console.debug('Setting `'+key+'` to '+ value);
|
|
102
|
+
// save to ~/.gina/{GINA_VERSION_SHORT}/settings.json
|
|
103
|
+
if ( /^(true|false)$/i.test(value) ) {
|
|
104
|
+
value = ( /^true$/i.test(value) ) ? true : false;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
process['gina'][key] = value;
|
|
108
|
+
mainSettingsConf[key] = value;
|
|
109
|
+
lib.generator.createFileFromDataSync(mainSettingsConf, mainSettingsPath);
|
|
110
|
+
}
|
|
111
|
+
|
|
80
112
|
var setPrefix = function(prefix) {
|
|
81
113
|
var err = null;
|
|
82
114
|
if ( !prefix || typeof(prefix) == 'undefined' || prefix == '' ) {
|
|
@@ -99,6 +131,7 @@ function Set(opt){
|
|
|
99
131
|
lib.generator.createFileFromDataSync(pack, _(GINA_DIR +'/package.json', true ));
|
|
100
132
|
}
|
|
101
133
|
|
|
134
|
+
|
|
102
135
|
var setGlobalMode = function(globalMode) {
|
|
103
136
|
var err = null;
|
|
104
137
|
if ( !globalMode || typeof(globalMode) == 'undefined' || globalMode == '' ) {
|
|
@@ -186,21 +219,22 @@ function Set(opt){
|
|
|
186
219
|
lib.generator.createFileFromDataSync(mainSettingsConf, mainSettingsPath);
|
|
187
220
|
}
|
|
188
221
|
|
|
189
|
-
var setPort = function(port) {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}
|
|
222
|
+
// var setPort = function(key, port) {
|
|
223
|
+
// console.debug('Setting `'+ key +'` to #'+ port);
|
|
224
|
+
// // save to ~/.gina/{GINA_VERSION_SHORT}/settings.json
|
|
225
|
+
// process['gina'][key] = ~~port;
|
|
226
|
+
// mainSettingsConf[key] = ~~port;
|
|
227
|
+
// lib.generator.createFileFromDataSync(mainSettingsConf, mainSettingsPath);
|
|
228
|
+
// }
|
|
196
229
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
230
|
+
|
|
231
|
+
// var setDebugPort = function(port) {
|
|
232
|
+
// console.debug('Setting `debug port` to #'+ port);
|
|
233
|
+
// // save to ~/.gina/{GINA_VERSION_SHORT}/settings.json
|
|
234
|
+
// process['gina']['debug_port'] = ~~port;
|
|
235
|
+
// mainSettingsConf['debug_port'] = ~~port;
|
|
236
|
+
// lib.generator.createFileFromDataSync(mainSettingsConf, mainSettingsPath);
|
|
237
|
+
// }
|
|
204
238
|
|
|
205
239
|
var setTimezone = function(timezone) {
|
|
206
240
|
// save to ~/.gina/main.json
|
|
@@ -226,6 +260,5 @@ function Set(opt){
|
|
|
226
260
|
}
|
|
227
261
|
|
|
228
262
|
init(opt)
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
module.exports = Set
|
|
263
|
+
}
|
|
264
|
+
module.exports = Set;
|
|
File without changes
|
|
@@ -36,6 +36,7 @@ function Status(opt, cmd) {
|
|
|
36
36
|
if (!list.length || list[0] == "") {
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
+
|
|
39
40
|
// console.debug('pids list ', list);
|
|
40
41
|
for (let p=0, len=list.length; p<len; p++) {
|
|
41
42
|
if ( !/^\d+\s+gina\-/.test(list[p]) ) {
|
|
@@ -59,6 +60,7 @@ function Status(opt, cmd) {
|
|
|
59
60
|
pidFiles.push(title +'.pid');
|
|
60
61
|
}
|
|
61
62
|
}
|
|
63
|
+
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
var status = function(opt, cmd) {
|
|
@@ -69,7 +71,7 @@ function Status(opt, cmd) {
|
|
|
69
71
|
throw fileError
|
|
70
72
|
}
|
|
71
73
|
checkUnregistered(pidFiles);
|
|
72
|
-
console.debug('
|
|
74
|
+
console.debug('Reading `'+ GINA_RUNDIR +'` ',pidFiles);
|
|
73
75
|
|
|
74
76
|
var runningVersions = [], runningLog = '';
|
|
75
77
|
for (let i=0, len=pidFiles.length; i<len; i++) {
|
|
File without changes
|
|
@@ -35,7 +35,7 @@ function Tail(opt, cmd) {
|
|
|
35
35
|
process.on('gina#mqlistener-started', function onGinaStarted(mqPort) {
|
|
36
36
|
clearInterval(nIntervId);
|
|
37
37
|
nIntervId = null;
|
|
38
|
-
opt.
|
|
38
|
+
opt.mqPort = mqPort;
|
|
39
39
|
tail(opt, cmd);
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -49,8 +49,10 @@ function Tail(opt, cmd) {
|
|
|
49
49
|
|
|
50
50
|
var tail = function(opt, cmd) {
|
|
51
51
|
|
|
52
|
-
var port = opt.
|
|
52
|
+
var port = opt.mqPort || GINA_MQ_PORT || 8125;
|
|
53
|
+
var host = opt.hostV4 || GINA_HOST_V4 || '127.0.0.1';
|
|
53
54
|
var clientOptions = {
|
|
55
|
+
host : host,
|
|
54
56
|
port : port,
|
|
55
57
|
request : 'tail'
|
|
56
58
|
}
|
|
@@ -76,7 +78,8 @@ function Tail(opt, cmd) {
|
|
|
76
78
|
|
|
77
79
|
// 'connect' listener.
|
|
78
80
|
console.resumeReporting();
|
|
79
|
-
console.
|
|
81
|
+
// console.debug('[MQTail] connected with opt `'+ JSON.stringify(opt, null, 2) +'` :)');
|
|
82
|
+
console.info('[MQTail] connected to server `'+ host +'` on port `'+ port +'` :)');
|
|
80
83
|
|
|
81
84
|
// send request
|
|
82
85
|
client.write( JSON.stringify(clientOptions) +'\r\n');
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -37,7 +37,7 @@ cmd.setOption = function(option) {
|
|
|
37
37
|
cmd.option[option[i].name] = option[i].content
|
|
38
38
|
}
|
|
39
39
|
} else {
|
|
40
|
-
cmd.option[options.name] = option.content
|
|
40
|
+
cmd.option[options.name] = option.content// jshint ignore:line
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -46,8 +46,8 @@ cmd.getString = function() {
|
|
|
46
46
|
.toString()
|
|
47
47
|
.replace(/,/g,' ')
|
|
48
48
|
.replace(/node\s/g, 'gina ');
|
|
49
|
-
//.replace(/node/g, 'gina');
|
|
50
|
-
|
|
49
|
+
//.replace(/node/g, 'gina');
|
|
50
|
+
|
|
51
51
|
var cmdArr = cmd.split('/');
|
|
52
52
|
cmd = cmdArr[cmdArr.length-1];
|
|
53
53
|
return cmd
|
|
@@ -71,14 +71,14 @@ cmd.getOptions = function() {
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
cmd.onExec = function(client, isFromFramework, opt) {
|
|
74
|
-
|
|
75
|
-
var console = lib.logger
|
|
74
|
+
|
|
75
|
+
var console = lib.logger;// jshint ignore:line
|
|
76
76
|
cmd.option = opt;
|
|
77
|
-
|
|
78
|
-
var Proc = require( getPath('gina').lib + '/proc')
|
|
77
|
+
|
|
78
|
+
var Proc = require( getPath('gina').lib + '/proc');// jshint ignore:line
|
|
79
79
|
var self = {};
|
|
80
80
|
|
|
81
|
-
cmd.msg = require( _(__dirname + '/framework/msg.json') )
|
|
81
|
+
cmd.msg = require( _(__dirname + '/framework/msg.json') );// jshint ignore:line
|
|
82
82
|
self.isFromFramework = opt.isFromFramework || isFromFramework || false;
|
|
83
83
|
self.isOnlineCommand = opt.isOnlineCommand || false;
|
|
84
84
|
|
|
@@ -93,38 +93,38 @@ cmd.onExec = function(client, isFromFramework, opt) {
|
|
|
93
93
|
|
|
94
94
|
var init = null;
|
|
95
95
|
if (self.isFromFramework) {
|
|
96
|
-
|
|
96
|
+
|
|
97
97
|
init = require('./framework/init')(opt);
|
|
98
98
|
//Framework CMD.
|
|
99
99
|
if (opt.task.action == 'start') {
|
|
100
|
-
// Current version of the framework by default
|
|
100
|
+
// Current version of the framework by default
|
|
101
101
|
// But can be overriden with argument: @{version_number}
|
|
102
102
|
// eg.: gina stop @1.0.0
|
|
103
|
-
self.version = getEnvVar('GINA_VERSION')
|
|
103
|
+
self.version = getEnvVar('GINA_VERSION');// jshint ignore:line
|
|
104
104
|
// checkcking version number
|
|
105
105
|
if ( typeof(opt.argv[3]) != 'undefined' && /^@/.test(opt.argv[3]) ) {
|
|
106
106
|
var err = null;
|
|
107
|
-
var version = opt.argv[3].replace(/\@/, '');
|
|
107
|
+
var version = opt.argv[3].replace(/\@/, '');
|
|
108
108
|
var shortVersion = version.split('.').splice(0,2).join('.');
|
|
109
109
|
if ( !/^\d\.\d/.test(shortVersion) ) {
|
|
110
110
|
err = new Error('Wrong version: '+ version);
|
|
111
111
|
console.log(err.message);
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
|
-
var availableVersions = requireJSON(_(getEnvVar('GINA_HOMEDIR') +'/main.json', true)).frameworks[shortVersion]
|
|
114
|
+
var availableVersions = requireJSON(_(getEnvVar('GINA_HOMEDIR') +'/main.json', true)).frameworks[shortVersion];// jshint ignore:line
|
|
115
115
|
if ( availableVersions.indexOf(version) < 0 ) {
|
|
116
116
|
err = new Error('Version not installed: '+ version);
|
|
117
117
|
console.log(err.message);
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
|
|
121
121
|
self.version = version;
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
|
|
124
124
|
init.onComplete( function done(err, run){
|
|
125
125
|
console.debug('loading task `', opt.task.topic +':'+ opt.task.action, '`');
|
|
126
|
-
|
|
127
|
-
//Setting master process with its own PID file.
|
|
126
|
+
|
|
127
|
+
//Setting master process with its own PID file.
|
|
128
128
|
cmd.proc = new Proc('gina-v' + self.version, process);
|
|
129
129
|
cmd.proc.setMaster(process.pid);
|
|
130
130
|
|
|
@@ -142,7 +142,7 @@ cmd.onExec = function(client, isFromFramework, opt) {
|
|
|
142
142
|
})
|
|
143
143
|
})
|
|
144
144
|
} else { // Offline CMD
|
|
145
|
-
init.onComplete( function done(err, run, opt){
|
|
145
|
+
init.onComplete( function done(err, run, opt){
|
|
146
146
|
run(opt)
|
|
147
147
|
})
|
|
148
148
|
}
|
|
@@ -154,11 +154,11 @@ cmd.onExec = function(client, isFromFramework, opt) {
|
|
|
154
154
|
}
|
|
155
155
|
opt.task.topic = arr[0];
|
|
156
156
|
opt.task.action = arr[1];
|
|
157
|
-
|
|
157
|
+
|
|
158
158
|
console.debug('[ FRAMEWORK ] is starting online CLI '+ arr[0] +':'+arr[1]);
|
|
159
|
-
|
|
159
|
+
|
|
160
160
|
init = require('./framework/init')(opt);
|
|
161
|
-
init.onListen( function done(err, run, opt){
|
|
161
|
+
init.onListen( function done(err, run, opt){
|
|
162
162
|
run(opt, cmd)
|
|
163
163
|
})
|
|
164
164
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|