Class: Godwit::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/godwit/base.rb

Overview

Godwit Base class.

When this class is initialized, the Godwit environment is booted.

Instance Method Summary collapse

Constructor Details

#initializeBase

:nodoc:



8
9
10
# File 'lib/godwit/base.rb', line 8

def initialize #:nodoc:
  Godwit::Bootloader.boot
end

Instance Method Details

#runObject

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