Sha256: 5bfae16f61c4d9e0472fe0536b3e398e5d4093a63477b8c17feb337c6f8cb61b

Contents?: true

Size: 558 Bytes

Versions: 3

Compression:

Stored size: 558 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"
  else
    $stderr.puts "Abiquo release version not found. Unsupported installation."
    exit
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
abiquo-etk-0.6.1 lib/abicli/commands/set.rb
abiquo-etk-0.6.0 lib/abicli/commands/set.rb
abiquo-etk-0.5.9 lib/abicli/commands/set.rb