Sha256: 13bf5747451c09e285326595c6c8a6a4282b4e7e841ef69e46e35561758cbf59

Contents?: true

Size: 857 Bytes

Versions: 3

Compression:

Stored size: 857 Bytes

Contents

require 'require_dir'

module Arli
  RequireDir.enable_require_dir!(self, __FILE__)
end

require 'arduino/library'
require 'arli/helpers/inherited'
require 'arli/helpers/system_commands'
require 'arli/version'
require 'arli/extensions'
require 'arli/errors'
require 'arli/configuration'
require 'arli/library'
require 'arli/commands'

module Arli
  @config = ::Arli::Configuration.config

  class << self
    attr_accessor :config

    def configure(&_block)
      yield(self.config)
    end

    def debug?
      self.config.debug
    end

    def library_path
      self.config.libraries.path
    end

    def default_library_path
      tilda_path(self.config.libraries.path)
    end

    def tilda_path(absolute_path)
      absolute_path.gsub(%r(#{ENV['HOME']}), '~')
    end
  end
end

require 'arli/arli_file'
require 'arli/actions'
require 'arli/cli'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arli-1.4.0 lib/arli.rb
arli-1.3.0 lib/arli.rb
arli-1.2.1 lib/arli.rb