Method: InlineForms::Creator.database
- Defined in:
- bin/inline_forms
.database ⇒ Object
37 38 39 40 41 42 43 44 45 46 |
# File 'bin/inline_forms', line 37 def self.database @database ||= [:database] return @database if DATABASE_OPTIONS.include?(@database) say "No Database specified please choose one database #{DATABASE_OPTIONS.join(' | ')}", :red # if the database is not set ask user which database to use while ! DATABASE_OPTIONS.include?(@database) @database = ask "Database: " return @database if DATABASE_OPTIONS.include?(@database) end end |