bldr-io / bldr

Awesome Task Runner
http://bldr.io
MIT License
219 stars 21 forks source link

allow setting environmental variables and resetting it after finished executaion with a call #113

Closed cordoval closed 10 years ago

cordoval commented 10 years ago
prodInstall:
            description: runs composer install with SYMFONY_ENV=prod
            calls:
                -
                    type: exec
                    executable: composer
                    failOnError: true
                    arguments:
                        - install
                        - --no-dev

I want to execute like in the shell SYMFONY_ENV=prod composer install --no-dev and then remove the SYMFONY_ENV var. Right now i cannot find any way for doing this.

I cannot set the env var permanently because i am just emulating the deploy on local but just setting the prod environment temporarily.

cryptiklemur commented 10 years ago

Could make a call to reset it

cordoval commented 10 years ago

yeah but within a block? where would it go, and what is the sketch?

cryptiklemur commented 10 years ago
-
    type: exec
    executable: export
    arguments: [SYMFONY_ENV]
cordoval commented 10 years ago

:+1: thanks for the shape

cryptiklemur commented 10 years ago

Within a block, idk. Maybe there could be a call in the MiscellaneousBlock to set Environment variables

cordoval commented 10 years ago

ok going to work on MiscellaneousBlock since i believe this is important :+1:

cordoval commented 10 years ago

close as it was already resolved on PR #118