Class: Invocker::Console
- Inherits:
-
Object
- Object
- Invocker::Console
- Defined in:
- lib/invocker/main.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/invocker/main.rb', line 8 def initialize invocker = Invocker::OptparsrInvocker.new = invocker.parse(ARGV) end |
Instance Method Details
#start ⇒ Object
13 14 15 16 17 18 |
# File 'lib/invocker/main.rb', line 13 def start configs if .config executes if .execute Invocker::Database.create if .database == :create Invocker::Database.drop if .database == :drop end |