Sha256: c5aa8ce2c8da1f38aa9ee10500382928dfa9de30e91533d10a3c96a3781aaa80

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 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
  # make $HOME/.config/wlog standard dirs, and pull up database
  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

1 entries across 1 versions & 1 rubygems

Version Path
wlog-1.2.2 lib/wlog/ui/bootstrap.rb