Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

CLI commands for parser #25

Merged
merged 1 commit into from Nov 17, 2016

Conversation

tliron
Copy link
Contributor

@tliron tliron commented Nov 16, 2016

Also includes some fixed to TOSCA extension.

@tliron tliron force-pushed the ARIATOSCA-22-cli-commands-for-parser branch 2 times, most recently from c079c54 to bd4cf91 Compare November 17, 2016 01:15
@@ -295,3 +294,68 @@ def _load_workflow_handler(handler_path):
except AttributeError:
# todo: exception handler
raise

from ..parser.consumption import (ConsumptionContext, ConsumerChain, Read, Validate, Model, Types, Inputs, Instance)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are the imports here and not at the top?

self.logger.info('blueprint parsed successfully')
deployment_plan = prepare_deployment_plan(plan=plan.copy(), inputs=inputs)
return plan, deployment_plan
#plan = parse_from_path(blueprint_path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we implement this functionality using the new parser? if not, let's remove the commented lines

@@ -44,6 +46,7 @@ def __init__(self, *args, **kwargs):
self.commands = {
'init': InitCommand.with_logger(base_logger=self.logger),
'execute': ExecuteCommand.with_logger(base_logger=self.logger),
'parse': ParseCommand.with_logger(base_logger=self.logger),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you decide to leave out spec?

====

See http://ariatosca.org/
[ARIA](http://ariatosca.org/) is a minimal TOSCA orchestrator, as well as a platform for building
TOSCA-based products. Its features can be accessed via a well-documented Python API, as well as a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no language-agnostic RESTful API for now

pip install tox
tox

To build the documentation:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we currently have no make file (or docs), so probably best to remove this line

@dankilman
Copy link
Contributor

Also, please amend to commit message to include ARIA-XXXX where XXXX is the JIRA related to this commit

@ran-z
Copy link

ran-z commented Nov 17, 2016

Please see this document regarding commit message guidelines:
https://cwiki.apache.org/confluence/display/ARIATOSCA/Commit+Message+Guidelines

@tliron tliron force-pushed the ARIATOSCA-22-cli-commands-for-parser branch 3 times, most recently from 76acef4 to 4ca7579 Compare November 17, 2016 17:07
@tliron tliron force-pushed the ARIATOSCA-22-cli-commands-for-parser branch from 4ca7579 to 3323819 Compare November 17, 2016 17:19
@asfgit asfgit merged commit 3323819 into apache:master Nov 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants