Sha256: 4cdcfee84f35cf5387e9081d54a501d9353bbd36213fa6ff9420f77835bd3f96

Contents?: true

Size: 641 Bytes

Versions: 1

Compression:

Stored size: 641 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__) + "/set18.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.5.8 lib/abicli/commands/set.rb