Sha256: 3a2a7003127bef2afdb56d958802b9bdb0f28bc7ba002870131953412d2712ec

Contents?: true

Size: 628 Bytes

Versions: 15

Compression:

Stored size: 628 Bytes

Contents

if ARGV[0] == 'server-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_server_settings
    f = ABIQUO_BASE_DIR + '/config/server.xml'
    doc = Nokogiri::XML(File.new(f))
    puts
    two_cols("Event Sink URL:".bold, config_get_node(doc, 'eventSinkAddress'))
    two_cols("Session Timeout:".bold, config_get_node(doc, 'sessionTimeout'))
    puts
  end

  print_server_settings

end

Version data entries

15 entries across 15 versions & 1 rubygems

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