Sha256: 6c20ccbb60559fefbca0d35e9a388d0eff02cdf8ff85e4abf25ffd075c95c459

Contents?: true

Size: 541 Bytes

Versions: 2

Compression:

Stored size: 541 Bytes

Contents

# frozen_string_literal: true

$LOAD_PATH.unshift(File.expand_path('./', __dir__))

require 'logger'
require 'fileutils'

require 'importmap_cli/version'
require 'importmap_cli/roles/http_resource'
require 'importmap_cli/main'

# adr cli root module
module ImportmapCLI
  class Error < StandardError; end

  CURRENT_DIR = FileUtils.pwd.freeze

  class << self
    # application logger
    def logger
      @logger ||= Logger.new($stdout)
    end

    # current directory
    def current_dir
      ImportmapCLI::CURRENT_DIR
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
importmap-cli-0.4.0 lib/importmap_cli.rb
importmap-cli-0.1.0 lib/importmap_cli.rb