summaryrefslogtreecommitdiff
path: root/src/org/stsci/OSInfo.groovy
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2018-01-24 21:29:58 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2018-01-24 21:29:58 -0500
commitd210abef152cf379de7ad8bd4cab62c3432451e3 (patch)
tree05e79190b55808382815ba84078e25a0eab49b48 /src/org/stsci/OSInfo.groovy
parent7f9fe6def81ebe837a5551b06ff5c7e759598555 (diff)
downloadgroovy-sandbox-d210abef152cf379de7ad8bd4cab62c3432451e3.tar.gz
Refactor namespace
Diffstat (limited to 'src/org/stsci/OSInfo.groovy')
-rw-r--r--src/org/stsci/OSInfo.groovy19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/org/stsci/OSInfo.groovy b/src/org/stsci/OSInfo.groovy
deleted file mode 100644
index 04375f8..0000000
--- a/src/org/stsci/OSInfo.groovy
+++ /dev/null
@@ -1,19 +0,0 @@
-package org.stsci
-
-class OSInfo implements Serializable {
- public String name
- public String version
- public String arch
-
- OSInfo () {
- name = 'uname -s'.execute().text.trim()
- if (name == 'Darwin') { name = 'MacOSX' }
- arch = 'uname -m'.execute().text.trim()
- if (arch.matches('^i.*86$')) { arch = 'x86' }
-
- this.name = name
- this.arch = arch
- this.version = 'uname -r'.execute().text.trim()
- }
-
-}