Sha256: 2367c0f96f80c45a58d5832beb733f55141a1d52f0b247745440bf8c37fb4639

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

require 'pathname'
require 'logger'

module Buildbox
  autoload :API,           "buildbox/api"
  autoload :Artifact,      "buildbox/artifact"
  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 :Uploader,      "buildbox/uploader"
  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.gem_path
    path = File.expand_path(File.join(__FILE__, "..", ".."))

    Pathname.new(path)
  end

  def self.home_path
    path = Pathname.new File.join(Dir.home, ".buildbox")
    path.mkpath unless path.exist?

    Pathname.new(path)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
buildbox-0.6.beta2 lib/buildbox.rb
buildbox-0.6.beta1 lib/buildbox.rb