jmoalves / levain

Something to help you make your software grow
MIT License
8 stars 5 forks source link

Refactoring - move package environment to another section #24

Closed jmoalves closed 3 years ago

jmoalves commented 3 years ago

Example:

Before

cmd.install:
    - extract --strip ${downloadDir}/runtime/wlp-javaee7-17.0.0.2.zip ${baseDir}
    - mkdir ${baseDir}/etc
    - copy --verbose repositories.properties ${baseDir}/etc
    - addPath ${baseDir}/bin
    - setEnv WLP_HOME ${baseDir}

cmd.shell:
    - addPath ${baseDir}/bin
    - setEnv WLP_HOME ${baseDir}

After:


env:
    - addPath ${baseDir}/bin
    - setEnv WLP_HOME ${baseDir}

cmd.install:
    - extract --strip ${downloadDir}/runtime/wlp-javaee7-17.0.0.1.zip ${baseDir}
    - mkdir ${baseDir}/etc
    - copy --verbose repositories.properties ${baseDir}/etc

cmd.shell: