summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2018-01-27 14:50:08 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2018-01-27 14:50:08 -0500
commitf71f9fcf8e16a5f871143255824b3e45f74d4d1c (patch)
tree53742c3fc597b19999dcafa60058e2e1538d11ed /src
parente600bd20878c25a02e5cecba243bbcd79c2ff773 (diff)
downloadgroovy-sandbox-f71f9fcf8e16a5f871143255824b3e45f74d4d1c.tar.gz
Too much vodka, still 3HEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/edu/stsci/CondaInstaller.groovy16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/edu/stsci/CondaInstaller.groovy b/src/edu/stsci/CondaInstaller.groovy
index ed5abfa..361a7c9 100644
--- a/src/edu/stsci/CondaInstaller.groovy
+++ b/src/edu/stsci/CondaInstaller.groovy
@@ -60,10 +60,9 @@ class CondaInstaller implements Serializable {
return p
}
- int download() {
+ void download() {
println("${this.ident} Downloading $url")
def proc = this.runshell("curl -sLO ${this.url}")
- return proc.exitValue()
// Whatever Jenkins... Why is this so hard?
/*
@@ -75,7 +74,7 @@ class CondaInstaller implements Serializable {
*/
}
- int install() {
+ void install() {
if (new File(this.prefix).exists()) {
println("${this.ident} ${this.prefix} exists.")
return 0xFF
@@ -85,16 +84,7 @@ class CondaInstaller implements Serializable {
this.download()
//}
- def cmd = "bash ${this.installer} -b -p ${this.prefix}"
- def proc = cmd.execute()
- def stdout = new StringBuffer()
-
- proc.inputStream.eachLine { println(it) }
-
- //proc.waitForProcessOutput(stdout, System.err)
- //print(stdout.toString())
-
- return proc.exitValue()
+ this.runshell("bash ${this.installer} -b -p ${this.prefix}")
}
private void detect() {