Class: Pgchief::Prompt::DropUser
- Defined in:
- lib/pgchief/prompt/drop_user.rb
Overview
Class to prompt for which user to drop
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
call, #initialize, #klassify, #prompt, #yes_or_no
Constructor Details
This class inherits a constructor from Pgchief::Prompt::Base
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 |
# File 'lib/pgchief/prompt/drop_user.rb', line 7 def call user = prompt.select('Which user needs to be deleted?', Pgchief::User.all) result = Pgchief::Command::UserDrop.call(user) prompt.say result end |