Sha256: 409586caa0e944628dd7f93783d1eff149f1d4d9f9a3d84f7e4cd5d56f5db693

Contents?: true

Size: 653 Bytes

Versions: 1

Compression:

Stored size: 653 Bytes

Contents

# frozen_string_literal: true

require 'logger'

module Xezat
  ROOT_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..'))
  DATA_DIR = File.expand_path(File.join(ROOT_DIR, 'share', 'xezat'))
  REPOSITORY_DIR = File.expand_path(File.join(DATA_DIR, 'repository'))
  TEMPLATE_DIR = File.expand_path(File.join(DATA_DIR, 'template'))
  INI_FILE = File.expand_path(File.join(Dir.home, '.xezat'))

  class << self
    attr_accessor :logger
  end
  Xezat.logger = Logger.new(STDOUT)
  Xezat.logger.formatter = proc { |_severity, datetime, _progname, message|
    "#{datetime}: #{message}\n"
  }

  class CygportProcessError < StandardError
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xezat-0.1.2 lib/xezat.rb