Sha256: 129eb90676c914f5e0e513e6b1c8c41f149177abcc18f5501ffc6e1a39b400af

Contents?: true

Size: 522 Bytes

Versions: 2

Compression:

Stored size: 522 Bytes

Contents

if ARGV[0] == 'server-settings'
  ARGV.shift
  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__) + "/server-settings17.ext"
  elsif rel_info =~ /Version: 1\.6/
    load File.dirname(__FILE__) + "/server-settings168.ext"
  else
    $stderr.puts "Abiquo release version not found. Unsupported installation."
    exit
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
abiquo-etk-0.5.3 lib/abicli/commands/server-settings.rb
abiquo-etk-0.4.42 lib/abicli/commands/server-settings.rb