Sha256: 0d9f2c856a83742835160978aba8c7b67d512ef5e3de3510aaf66f1ad1135c35

Contents?: true

Size: 1.05 KB

Versions: 10

Compression:

Stored size: 1.05 KB

Contents

require 'pathname'
require 'logger'

module Buildbox
  autoload :API,           "buildbox/api"
  autoload :Build,         "buildbox/build"
  autoload :Command,       "buildbox/command"
  autoload :Canceler,      "buildbox/canceler"
  autoload :CLI,           "buildbox/cli"
  autoload :Configuration, "buildbox/configuration"
  autoload :Monitor,       "buildbox/monitor"
  autoload :Platform,      "buildbox/platform"
  autoload :Runner,        "buildbox/runner"
  autoload :Script,        "buildbox/script"
  autoload :Server,        "buildbox/server"
  autoload :UTF8,          "buildbox/utf8"
  autoload :Agent,         "buildbox/agent"
  autoload :VERSION,       "buildbox/version"

  def self.config
    @config ||= Configuration.new.tap(&:reload)
  end

  def self.logger
    @logger ||= Logger.new(STDOUT).tap { |logger| logger.level = Logger::INFO }
  end

  def self.logger=(logger)
    @logger = logger
  end

  def self.root_path
    path = Pathname.new File.join(ENV['HOME'], ".buildbox")
    path.mkpath unless path.exist?

    Pathname.new(path)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
buildbox-0.4.2 lib/buildbox.rb
buildbox-0.4.1 lib/buildbox.rb
buildbox-0.4 lib/buildbox.rb
buildbox-0.3.9.1 lib/buildbox.rb
buildbox-0.3.9 lib/buildbox.rb
buildbox-0.3.8 lib/buildbox.rb
buildbox-0.3.7 lib/buildbox.rb
buildbox-0.3.6 lib/buildbox.rb
buildbox-0.3.5 lib/buildbox.rb
buildbox-0.3.3 lib/buildbox.rb