Sha256: ea9b1cb2e7824eaffc2425de62d71683bf7c657429d6284ba475194b0ad4e7f3

Contents?: true

Size: 872 Bytes

Versions: 9

Compression:

Stored size: 872 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
abiquo-etk-0.6.4 lib/abicli/commands/remote-services-settings16.ext
abiquo-etk-0.6.3 lib/abicli/commands/remote-services-settings16.ext
abiquo-etk-0.6.2 lib/abicli/commands/remote-services-settings16.ext
abiquo-etk-0.6.1 lib/abicli/commands/remote-services-settings16.ext
abiquo-etk-0.6.0 lib/abicli/commands/remote-services-settings16.ext
abiquo-etk-0.5.9 lib/abicli/commands/remote-services-settings16.ext
abiquo-etk-0.5.8 lib/abicli/commands/remote-services-settings16.ext
abiquo-etk-0.5.3 lib/abicli/commands/remote-services-settings16.ext
abiquo-etk-0.4.42 lib/abicli/commands/remote-services-settings16.ext