Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should installing a blueprint require importing blueprint.py? #421

Open
eyeseast opened this issue May 11, 2016 · 0 comments
Open

Should installing a blueprint require importing blueprint.py? #421

eyeseast opened this issue May 11, 2016 · 0 comments

Comments

@eyeseast
Copy link
Contributor

Installing a new blueprint, and this happens:

$ tarbell install-blueprint [email protected]:frontlinepbs/fl-base-blueprint.git

Installing [email protected]:frontlinepbs/fl-base-blueprint.git

- Cloning repo
Cloning into '.'...

Requirements file found at /var/folders/cm/yyzsx0y146q8mpj8k2nq558sklvvz7/T/tmpLxqaf6/requirements.txt
Install requirements now with pip install -r requirements.txt? [Y/n] n
Not installing requirements. This may break everything! Vaya con dios.

- Found _blueprint/blueprint.py

- Name specified in blueprint.py: FRONTLINE base

+ Added new project template: FRONTLINE base

The blueprint repo gets cloned (into a temp dir). Tarbell finds requirements.txt and asks whether to install it. (I say no.) Tarbell imports blueprint.py as a module.

I think this is all so it can look up blueprint.NAME. Would it be easier to pass the blueprint name as an argument, and prompt if it's missing? Would that save many people much heartache?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant