Sha256: def78c07cf0aa8eab57cec97344ca0b0fc237496caef30a0468bd4f2666330fd

Contents?: true

Size: 688 Bytes

Versions: 44

Compression:

Stored size: 688 Bytes

Contents

#!/usr/bin/env ruby

if ARGV && ARGV.size > 0 && ARGV[0] == "--rhodes-path"
    currDir = File.dirname(__FILE__)
    Dir.chdir(currDir)
    Dir.chdir("..")
    puts Dir.pwd
    exit(0)    
end

require File.join(File.dirname(__FILE__), '..', 'lib', 'rhodes')

params = ["--rhodes-ver"]

def findParam(paramArray, paramId)
   i=0
   until i == paramArray.size do

     param = paramArray[i]
     paramPair = param.split('=')

     if paramPair.size > 1
       if paramId == paramPair[0] then
         return paramPair[1].to_s
       end 
     end

     i += 1
   end

   return nil
end

requestVer = findParam(ARGV, params[0])

if requestVer <= Rhodes::VERSION
  puts 1
else
  puts 0
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
rhodes-7.6.0 bin/get-rhodes-info
rhodes-7.5.1 bin/get-rhodes-info
rhodes-7.4.1 bin/get-rhodes-info
rhodes-7.1.17 bin/get-rhodes-info
rhodes-6.2.0 bin/get-rhodes-info
rhodes-6.0.11 bin/get-rhodes-info
rhodes-5.5.18 bin/get-rhodes-info
rhodes-5.5.17 bin/get-rhodes-info
rhodes-5.5.15 bin/get-rhodes-info
rhodes-5.5.0.22 bin/get-rhodes-info
rhodes-5.5.2 bin/get-rhodes-info
rhodes-5.5.0.7 bin/get-rhodes-info
rhodes-5.5.0.3 bin/get-rhodes-info
rhodes-5.5.0 bin/get-rhodes-info
rhodes-3.5.1.12 bin/get-rhodes-info
rhodes-3.3.5 bin/get-rhodes-info
rhodes-3.4.2 bin/get-rhodes-info
rhodes-3.3.4 bin/get-rhodes-info
rhodes-3.3.3 bin/get-rhodes-info
rhodes-3.3.3.beta.4 bin/get-rhodes-info