Sha256: 599ca14c04563ccb13c27cd8aee59795f212834c9a772e29827c72a7d2873807

Contents?: true

Size: 278 Bytes

Versions: 9

Compression:

Stored size: 278 Bytes

Contents

require "fileutils"
require "focuslight"
require "focuslight/config"
require "focuslight/data"

module Focuslight::Init
  def self.run
    datadir = Focuslight::Config.get(:datadir)
    FileUtils.mkdir_p(datadir)
    data = Focuslight::Data.new
    data.create_tables
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
focuslight-0.2.4 lib/focuslight/init.rb
focuslight-0.2.3 lib/focuslight/init.rb
focuslight-0.2.2 lib/focuslight/init.rb
focuslight-0.2.1 lib/focuslight/init.rb
focuslight-0.2.0 lib/focuslight/init.rb
focuslight-0.1.4 lib/focuslight/init.rb
focuslight-0.1.3 lib/focuslight/init.rb
focuslight-0.1.2 lib/focuslight/init.rb
focuslight-0.1.1 lib/focuslight/init.rb