Module: Buildbox

Defined in:
lib/buildbox/command.rb,
lib/buildbox.rb,
lib/buildbox/api.rb,
lib/buildbox/cli.rb,
lib/buildbox/utf8.rb,
lib/buildbox/agent.rb,
lib/buildbox/build.rb,
lib/buildbox/runner.rb,
lib/buildbox/server.rb,
lib/buildbox/monitor.rb,
lib/buildbox/version.rb,
lib/buildbox/platform.rb,
lib/buildbox/configuration.rb

Overview

Defined Under Namespace

Modules: UTF8 Classes: API, Agent, Build, CLI, Command, Configuration, Monitor, Platform, Runner, Server

Constant Summary collapse

VERSION =
"0.3.2"

Class Method Summary collapse

Class Method Details

.configObject



19
20
21
# File 'lib/buildbox.rb', line 19

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

.gem_rootObject



31
32
33
# File 'lib/buildbox.rb', line 31

def self.gem_root
  path = File.expand_path(File.join(__FILE__, "..", ".."))
end

.loggerObject



23
24
25
# File 'lib/buildbox.rb', line 23

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

.logger=(logger) ⇒ Object



27
28
29
# File 'lib/buildbox.rb', line 27

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

.root_pathObject



35
36
37
38
39
40
# File 'lib/buildbox.rb', line 35

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

  Pathname.new(path)
end