Method: Pgchief::Prompt::GrantDatabasePrivileges#call
- Defined in:
- lib/pgchief/prompt/grant_database_privileges.rb
#call ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/pgchief/prompt/grant_database_privileges.rb', line 7 def call username = params[0] || select_user password = params[1] || ask_for_password databases = params[2] || prompt.multi_select("Give \"#{username}\" access to database(s):", Pgchief::Database.all) result = Pgchief::Command::DatabasePrivilegesGrant.call(username, password, databases) prompt.say result end |