Sha256: 9f9f68550acc25f8b35038c30e53bfe8e2d7a43e57a8969ea156aa92c83f8ee3

Contents?: true

Size: 469 Bytes

Versions: 5

Compression:

Stored size: 469 Bytes

Contents

require 'wlog/commands/innit_db'
require 'wlog/ui/setup_wizard'
require 'wlog/domain/helpers'

module Wlog
# This takes care of initialization. Place this class between the main entry
# point of the application and, the first transaction you require.
# @author Simon Symeonidis
class Bootstrap
  def self.configure!
    Helpers.make_dirs!
    InnitDb.new.execute 
    # Initial setup if first time running
    SetupWizard.new.run if Helpers.first_setup?
  end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wlog-1.1.7 lib/wlog/ui/bootstrap.rb
wlog-1.1.6 lib/wlog/ui/bootstrap.rb
wlog-1.1.5 lib/wlog/ui/bootstrap.rb
wlog-1.1.1 lib/wlog/ui/bootstrap.rb
wlog-1.0.5 lib/wlog/ui/bootstrap.rb