Class: Godwit::Base
- Inherits:
-
Object
- Object
- Godwit::Base
- Defined in:
- lib/godwit/base.rb
Overview
Godwit Base class.
When this class is initialized, the Godwit environment is booted.
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
:nodoc:.
-
#run ⇒ Object
Starts Godwit.
Constructor Details
#initialize ⇒ Base
:nodoc:
8 9 10 |
# File 'lib/godwit/base.rb', line 8 def initialize #:nodoc: Godwit::Bootloader.boot end |
Instance Method Details
#run ⇒ Object
Starts Godwit.
14 15 16 17 18 19 20 21 22 |
# File 'lib/godwit/base.rb', line 14 def run Godwit::Buffer.puts "\nLoading Migrations..." unless Godwit::Config[:silence] unless Godwit::Config[:specific_migration] run_all else run_single end Godwit::Buffer.puts "\nDone." unless Godwit::Config[:silence] end |