Class: Kangaroo::Util::Proxy::Superadmin
- Inherits:
-
Kangaroo::Util::Proxy
- Object
- Rapuncel::Proxy
- Kangaroo::Util::Proxy
- Kangaroo::Util::Proxy::Superadmin
- Defined in:
- lib/kangaroo/util/proxy/superadmin.rb
Instance Method Summary collapse
-
#change_admin_password(new_password) ⇒ Object
Change superadmin password.
-
#create(db_name, demo, lang, password) ⇒ Integer
Create a new database.
-
#drop(db_name) ⇒ Object
Drop a database by name.
-
#dump(db_name) ⇒ Object
Dump/Backup a database by name.
-
#get_progress(id) ⇒ Object
Check progress on database creation.
-
#migrate_databases(databases) ⇒ Object
Migrate specified databases.
-
#rename(old_name, new_name) ⇒ Object
Rename a database.
-
#restore(db_name, data) ⇒ Object
Load/Restore a database.
Methods inherited from Kangaroo::Util::Proxy
Instance Method Details
#change_admin_password(new_password) ⇒ Object
Change superadmin password
59 60 61 |
# File 'lib/kangaroo/util/proxy/superadmin.rb', line 59 def change_admin_password new_password call! :change_admin_password, new_password end |
#create(db_name, demo, lang, password) ⇒ Integer
Create a new database
11 12 13 |
# File 'lib/kangaroo/util/proxy/superadmin.rb', line 11 def create db_name, demo, lang, password call! :create, db_name, demo, lang, password end |
#drop(db_name) ⇒ Object
Drop a database by name
27 28 29 |
# File 'lib/kangaroo/util/proxy/superadmin.rb', line 27 def drop db_name call! :drop, db_name end |
#dump(db_name) ⇒ Object
Dump/Backup a database by name
35 36 37 |
# File 'lib/kangaroo/util/proxy/superadmin.rb', line 35 def dump db_name call! :dump, db_name end |
#get_progress(id) ⇒ Object
Check progress on database creation. Pass the id you get from #create as only parameter
20 21 22 |
# File 'lib/kangaroo/util/proxy/superadmin.rb', line 20 def get_progress id call! :get_progress, id end |
#migrate_databases(databases) ⇒ Object
Migrate specified databases
66 67 68 |
# File 'lib/kangaroo/util/proxy/superadmin.rb', line 66 def migrate_databases databases call! :migrate_databases, databases end |
#rename(old_name, new_name) ⇒ Object
Rename a database
51 52 53 |
# File 'lib/kangaroo/util/proxy/superadmin.rb', line 51 def rename old_name, new_name call! :rename, old_name, new_name end |
#restore(db_name, data) ⇒ Object
Load/Restore a database
43 44 45 |
# File 'lib/kangaroo/util/proxy/superadmin.rb', line 43 def restore db_name, data call! :restore, db_name, data end |