This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gvm flush candidates | |
#open a new terminal now | |
$ gvm install springboot | |
$ spring --version | |
#have fun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function printit { | |
echo "This is from an embedded function: $1" | |
} | |
function printthat { | |
echo "This is the first line." | |
$1 $2 | |
echo "This is the third line." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gvm selfupdate && source ~/.gvm/bin/gvm-init.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export GVM_SERVICE="http://dev.gvmtool.net" && gvm selfupdate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gvm install groovy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export GVM_SERVICE="http://dev.gvmtool.net" && gvm selfupdate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export GVM_SERVICE="http://beta.gvmtool.net" && gvm selfupdate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ENV="$1" | |
TAG="$2" | |
if [[ -z "$ENV" || -z "$TAG" ]]; then | |
echo "Usage: deploy-gvm <env> <tag>" | |
exit 0 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias switch='cat application.properties | grep app.grails.version | sed "s_app.grails.version=__g" | xargs gvm use grails' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def loadConfiguration() { | |
def environment = hasProperty('env') ? env : 'dev' | |
ext.environment = environment | |
println "Environment is set to: $environment" | |
def configFile = file('config.groovy') | |
def config = new ConfigSlurper(environment).parse(configFile.toURL()) | |
ext.config = config | |
} |