Sha256: 8180b9babd6373bbb4803f97f495d1e266bcd36d6928e730beb7101b80452f5d
Contents?: true
Size: 968 Bytes
Versions: 15
Compression:
Stored size: 968 Bytes
Contents
if ARGV[0] == 'remote-services-settings' ARGV.shift if not File.directory? ABIQUO_BASE_DIR $stderr.puts "\n'abicli set' command is used to configure the Abiquo Platform.\nUnfortunately, I can't find the Abiquo Platform installed in this server.\n\nTry other commands.\n\n" help exit 1 end def print_remote_services_settings f = ABIQUO_BASE_DIR + '/config/virtualfactory.xml' doc = Nokogiri::XML(File.new(f)) puts two_cols("NFS Repository:".bold, config_get_node(doc, 'hypervisors/xenserver/abiquoRepository')) two_cols("CIFS Repository:".bold, config_get_node(doc, 'hypervisors/hyperv/destinationRepositoryPath')) two_cols("Storage Link URL:".bold, config_get_node(doc, 'storagelink/address')) two_cols("Storage Link User:".bold, config_get_node(doc, 'storagelink/user')) two_cols("Storage Link Password:".bold, config_get_node(doc, 'storagelink/password')) puts end print_remote_services_settings end
Version data entries
15 entries across 15 versions & 1 rubygems