Class: Kangaroo::Util::Proxy::Common
- Inherits:
-
Kangaroo::Util::Proxy
- Object
- Rapuncel::Proxy
- Kangaroo::Util::Proxy
- Kangaroo::Util::Proxy::Common
- Defined in:
- lib/kangaroo/util/proxy/common.rb
Instance Method Summary collapse
-
#about(extended = false) ⇒ Object
Get information about the OpenERP Server.
-
#check_connectivity ⇒ boolean
Check connectivity.
-
#get_available_updates(super_password, contract_id, contract_password) ⇒ Object
Get list of available updates, needs valid Publisher’s Warranty.
-
#get_migration_scripts(super_password, contract_id, contract_password) ⇒ Object
Get migration scripts, needs valid Publisher’s Warranty.
-
#get_os_time(super_password) ⇒ Object
Get servers OS time.
-
#get_server_environment ⇒ Object
Get server environment.
-
#get_sqlcount ⇒ Object
Get SQL count, needs loglevel DEBUG_SQL.
-
#get_stats ⇒ Object
Get server stats.
-
#list_http_services ⇒ Object
List HTTP services.
-
#login(db_name, user, password) ⇒ Object
Login to an OpenERP database.
-
#login_message ⇒ Object
Get login message.
-
#set_loglevel(super_password, loglevel) ⇒ Object
Set log level.
-
#timezone_get(database, login, password) ⇒ Object
Get OpenERP Servers timezone configuration.
Methods inherited from Kangaroo::Util::Proxy
Instance Method Details
#about(extended = false) ⇒ Object
Get information about the OpenERP Server
17 18 19 |
# File 'lib/kangaroo/util/proxy/common.rb', line 17 def about extended = false call! :about, extended end |
#check_connectivity ⇒ boolean
Check connectivity
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
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
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
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_environment ⇒ Object
Get server environment
34 35 36 |
# File 'lib/kangaroo/util/proxy/common.rb', line 34 def get_server_environment call! :get_server_environment end |
#get_sqlcount ⇒ Object
Get SQL count, needs loglevel DEBUG_SQL
86 87 88 |
# File 'lib/kangaroo/util/proxy/common.rb', line 86 def get_sqlcount call! :get_sqlcount end |
#get_stats ⇒ Object
Get server stats
57 58 59 |
# File 'lib/kangaroo/util/proxy/common.rb', line 57 def get_stats call! :get_stats end |
#list_http_services ⇒ Object
List 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
9 10 11 |
# File 'lib/kangaroo/util/proxy/common.rb', line 9 def login db_name, user, password call! :login, db_name, user, password end |
#login_message ⇒ Object
Get 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
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
27 28 29 |
# File 'lib/kangaroo/util/proxy/common.rb', line 27 def timezone_get database, login, password call! :timezone_get, database, login, password end |