Sha256: c291939056cf93d59a118ea9eefe20fd965c3a339b7eaa83a575b7aca437b3ae

Contents?: true

Size: 703 Bytes

Versions: 3

Compression:

Stored size: 703 Bytes

Contents

require 'arduino/library'

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
      dehomify_path(self.config.libraries.path)
    end

    def dehomify_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-0.7.0 lib/arli.rb
arli-0.6.2 lib/arli.rb
arli-0.6.1 lib/arli.rb