Class: AethernalAgent::Webserver::Api

Inherits:
Sinatra::Base
  • Object
show all
Includes:
Utils
Defined in:
lib/aethernal_agent/webserver/api.rb

Class Method Summary collapse

Methods included from Utils

#apt_running?, #check_manifest, #container_domain, #current_xdg_runtime_dir, #docker_container_name, #get_current_uid, #get_global_config, #global_config_path, #port_is_free, #prepare_test_config, #print_system, #random_port, #random_string, #run_as, #run_command, #run_systemd_plain, #set_global_config, #systemd_text_for_service, #ubuntu_release, #wait_on_apt, #wait_on_file, #wait_on_port

Class Method Details

.start(user, password, pool) ⇒ Object



74
75
76
77
78
79
80
# File 'lib/aethernal_agent/webserver/api.rb', line 74

def self.start(user, password, pool)
  @@username = user
  @@password = password
  @@pool = pool
  AethernalAgent.logger.debug("Starting API with username #{@@username} and password #{@@password}")
  run!
end