Class: Pgchief::Prompt::CreateDatabase
- Defined in:
- lib/pgchief/prompt/create_database.rb
Overview
Class to ask for database name, in order to create it
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
permalink #call ⇒ Object
[View source]
7 8 9 10 11 12 |
# File 'lib/pgchief/prompt/create_database.rb', line 7 def call database = prompt.ask('Database name:') result = Pgchief::Command::DatabaseCreate.call(database) prompt.say result end |