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

Version Path
abiquo-etk-0.4.33 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.32 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.29 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.25 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.24 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.23 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.22 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.20 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.19 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.18 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.17 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.16 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.15 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.14 lib/abicli/commands/remote-services-settings.rb
abiquo-etk-0.4.13 lib/abicli/commands/remote-services-settings.rb