Sha256: de1240773f76e021b6508ab7728366d535273cd96f355a16b21b4ce45146b6c6
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 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\.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.3 | lib/abicli/commands/set.rb |