Sha256: 0576526742f6554720ce81b51ea157441d3fb762e2a0a33a45f1a3bac21bb7c5

Contents?: true

Size: 617 Bytes

Versions: 6

Compression:

Stored size: 617 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"
  elsif rel_info =~ /Version: 1\.8/
    load File.dirname(__FILE__) + "/server-settings18.ext"
  else
    $stderr.puts "Abiquo release version not found. Unsupported installation."
    exit
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
abiquo-etk-0.6.4 lib/abicli/commands/server-settings.rb
abiquo-etk-0.6.3 lib/abicli/commands/server-settings.rb
abiquo-etk-0.6.2 lib/abicli/commands/server-settings.rb
abiquo-etk-0.6.1 lib/abicli/commands/server-settings.rb
abiquo-etk-0.6.0 lib/abicli/commands/server-settings.rb
abiquo-etk-0.5.9 lib/abicli/commands/server-settings.rb