summaryrefslogtreecommitdiff
path: root/lib/tasks/gitlab/info.rake
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2013-01-12 01:24:51 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2013-01-12 01:24:51 +0100
commita213d4b9e80fed7a8ad38185d2a93e6def295e50 (patch)
tree4e65a9ac5a701a1912f8321ab90d785cd769cf27 /lib/tasks/gitlab/info.rake
parentfd836f5490dbc05b84895f4d3736bfa572f80911 (diff)
downloadgitlab-ce-a213d4b9e80fed7a8ad38185d2a93e6def295e50.tar.gz
Move OS detection to task helpers and add detection of OS X
Diffstat (limited to 'lib/tasks/gitlab/info.rake')
-rw-r--r--lib/tasks/gitlab/info.rake14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/tasks/gitlab/info.rake b/lib/tasks/gitlab/info.rake
index fd3e83e8338..4b906684dcd 100644
--- a/lib/tasks/gitlab/info.rake
+++ b/lib/tasks/gitlab/info.rake
@@ -3,20 +3,6 @@ namespace :gitlab do
desc "GITLAB | Show information about GitLab and its environment"
task info: :environment do
- # check which OS is running
- os_name = run("lsb_release -irs")
- os_name ||= if File.readable?('/etc/system-release')
- File.read('/etc/system-release')
- end
- os_name ||= if File.readable?('/etc/debian_version')
- debian_version = File.read('/etc/debian_version')
- "Debian #{debian_version}"
- end
- os_name ||= if File.readable?('/etc/SuSE-release')
- File.read('/etc/SuSE-release')
- end
- os_name.try(:squish!)
-
# check if there is an RVM environment
rvm_version = run_and_match("rvm --version", /[\d\.]+/).try(:to_s)
# check Ruby version