Sha256: b5e33edb758ac79b31c7e41b62da277ac31951fd41bad28bda12a1149f85ad4d

Contents?: true

Size: 902 Bytes

Versions: 1

Compression:

Stored size: 902 Bytes

Contents

if ARGV[0] == 'set'
  if not File.exist?('/etc/abiquo-release')
    $stderr.puts "Abiquo release version not found. Unsupported installation."
    exit
  end

  rel_info = File.read('/etc/abiquo-release')
  if rel_info =~ /Version: 1\.7/
    load File.dirname(__FILE__) + "/set17.ext"
  elsif rel_info =~ /Version: 1\.6/
    load File.dirname(__FILE__) + "/set168.ext"
  elsif rel_info =~ /Version: 1\.8/
    load File.dirname(__FILE__) + "/set18.ext"
  elsif rel_info =~ /Version: 2\.0/
    load File.dirname(__FILE__) + "/set20.ext"
  elsif rel_info =~ /Version: 2\.2(.*)/
    load File.dirname(__FILE__) + "/set22.ext"
  elsif rel_info =~ /Version: 2\.3(.*)/
    load File.dirname(__FILE__) + "/set23.ext"
  elsif rel_info =~ /Version: 2\.4(.*)/
    load File.dirname(__FILE__) + "/set24.ext"
  else
    $stderr.puts "Abiquo release version not found. Unsupported installation."
    exit
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
abiquo-etk-0.6.4 lib/abicli/commands/set.rb