Class: Kangaroo::Util::Proxy::Common

Inherits:
Kangaroo::Util::Proxy show all
Defined in:
lib/kangaroo/util/proxy/common.rb

Instance Method Summary collapse

Methods inherited from Kangaroo::Util::Proxy

#__initialize__, #call!, new

Instance Method Details

#about(extended = false) ⇒ Object

Get information about the OpenERP Server

Parameters:

  • extended (boolean) (defaults to: false)

    Display extended information

Returns:

  • About information



17
18
19
# File 'lib/kangaroo/util/proxy/common.rb', line 17

def about extended = false
  call! :about, extended
end

#check_connectivityboolean

Check connectivity

Returns:

  • (boolean)

    true/false



71
72
73
# File 'lib/kangaroo/util/proxy/common.rb', line 71

def check_connectivity
  call! :check_connectivity
end

#get_available_updates(super_password, contract_id, contract_password) ⇒ Object

Get list of available updates, needs valid Publisher’s Warranty

Parameters:

  • super_password

    Superadmin password

  • contract_id

    Publisher’s Warranty ID

  • contract_password

    Publisher’s Warranty Password

Returns:

  • list of available updates



96
97
98
# File 'lib/kangaroo/util/proxy/common.rb', line 96

def get_available_updates super_password, contract_id, contract_password
  call! :get_available_updates, contract_id, contract_password
end

#get_migration_scripts(super_password, contract_id, contract_password) ⇒ Object

Get migration scripts, needs valid Publisher’s Warranty

Parameters:

  • super_password

    Superadmin password

  • contract_id

    Publisher’s Warranty ID

  • contract_password

    Publisher’s Warranty Password

Returns:

  • migration scripts



106
107
108
# File 'lib/kangaroo/util/proxy/common.rb', line 106

def get_migration_scripts super_password, contract_id, contract_password
  call! :get_migration_scripts, contract_id, contract_password
end

#get_os_time(super_password) ⇒ Object

Get servers OS time

Parameters:

  • super_password (String)

    Superadmin password

Returns:

  • servers OS time



79
80
81
# File 'lib/kangaroo/util/proxy/common.rb', line 79

def get_os_time super_password
  call! :get_os_time, super_password
end

#get_server_environmentObject

Get server environment

Returns:

  • Details about server environment



34
35
36
# File 'lib/kangaroo/util/proxy/common.rb', line 34

def get_server_environment
  call! :get_server_environment
end

#get_sqlcountObject

Get SQL count, needs loglevel DEBUG_SQL

Returns:

  • Count of SQL queries



86
87
88
# File 'lib/kangaroo/util/proxy/common.rb', line 86

def get_sqlcount
  call! :get_sqlcount
end

#get_statsObject

Get server stats

Returns:

  • Server stats



57
58
59
# File 'lib/kangaroo/util/proxy/common.rb', line 57

def get_stats
  call! :get_stats
end

#list_http_servicesObject

List HTTP services

Returns:

  • List of HTTP services



64
65
66
# File 'lib/kangaroo/util/proxy/common.rb', line 64

def list_http_services
  call! :list_http_services
end

#login(db_name, user, password) ⇒ Object

Login to an OpenERP database

Parameters:

  • db_name (String)

    The database to log in

  • user (String)

    Username

  • password (String)

    Password



9
10
11
# File 'lib/kangaroo/util/proxy/common.rb', line 9

def  db_name, user, password
  call! :login, db_name, user, password
end

#login_messageObject

Get login message

Returns:

  • login message



41
42
43
# File 'lib/kangaroo/util/proxy/common.rb', line 41

def 
  call! :login_message
end

#set_loglevel(super_password, loglevel) ⇒ Object

Set log level

Parameters:

  • super_password

    Superadmin password

  • loglevel

    Loglevel to set

Returns:

  • true



50
51
52
# File 'lib/kangaroo/util/proxy/common.rb', line 50

def set_loglevel super_password, loglevel
  call! :set_loglevel, loglevel.upcase
end

#timezone_get(database, login, password) ⇒ Object

Get OpenERP Servers timezone configuration

Parameters:

  • database
  • login
  • password

Returns:

  • Timezone information



27
28
29
# File 'lib/kangaroo/util/proxy/common.rb', line 27

def timezone_get database, , password
  call! :timezone_get, database, , password
end