Class: Termory::Console
- Inherits:
-
Object
- Object
- Termory::Console
- Defined in:
- lib/termory.rb
Instance Method Summary collapse
-
#initialize ⇒ Console
constructor
A new instance of Console.
- #start ⇒ Object
Constructor Details
#initialize ⇒ Console
Returns a new instance of Console.
8 9 10 11 |
# File 'lib/termory.rb', line 8 def initialize termory = Termory::OptparsrTermory.new = termory.parse(ARGV) end |
Instance Method Details
#start ⇒ Object
13 14 15 16 17 18 |
# File 'lib/termory.rb', line 13 def start configs if .config executes if .execute Termory::Database.create if .database == :create Termory::Database.drop if .database == :drop end |