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

cascading configuration #29

Open
mottosso opened this issue Jun 29, 2015 · 2 comments
Open

cascading configuration #29

mottosso opened this issue Jun 29, 2015 · 2 comments
Labels

Comments

@mottosso
Copy link
Owner

goal

To enable per-item configuration, such as additional environment variables and aliases.

$ be in hulk bruce rigging --enter
$ maya
Launching Maya 2015..
$ be in hulk bruce rigging --enter
$ maya
Customised, launching Maya 2016..

implementation

The be.yaml configuration file is looked up at each level of the development directory.

E.g.

▸ hulk
  ▸ be.yaml
  ▾ assets
    ▾ bruce
      ▾ be.yaml

Each key is appended to the upper, children overwrite parents.

hulk/be.yaml

alias:
- maya: start "" "maya2015.exe"

bruce/be.yaml

alias:
- maya: start "" "maya2016.exe"
@ghost
Copy link

ghost commented Jul 6, 2015

Sometimes environment variable need to be declared only for specific software. Like MAYA_SCRIPT_PATH or MAYA_PLUG_IN_PATH. I don't see how this would be done with only an alias system.

I think it would fit well to declare software in the be.yaml :

software:
  Maya:
    command: start "" "maya2016.exe"
     env:
        MAYA_PLUG_IN_PATH: path/to/plugins
        MAYA_SCRIPT_PATH: path/to/scripts

What do you think of this design ?

@mottosso
Copy link
Owner Author

mottosso commented Jul 7, 2015

Hi @hommes-doutant, you're absolutely right, this is an important aspect of configuring the environment. The intent is for this to be handled separately - in the simplest case, via so called "wrappers".

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

No branches or pull requests

1 participant