lib/buildbox.rb in buildbox-0.2.2 vs lib/buildbox.rb in buildbox-0.2.3
- old
+ new
@@ -5,11 +5,10 @@
autoload :API, "buildbox/api"
autoload :Build, "buildbox/build"
autoload :Command, "buildbox/command"
autoload :CLI, "buildbox/cli"
autoload :Configuration, "buildbox/configuration"
- autoload :Environment, "buildbox/environment"
autoload :Monitor, "buildbox/monitor"
autoload :Runner, "buildbox/runner"
autoload :Script, "buildbox/script"
autoload :Server, "buildbox/server"
autoload :UTF8, "buildbox/utf8"
@@ -20,9 +19,13 @@
@config ||= Configuration.new.tap(&:reload)
end
def self.logger
@logger ||= Logger.new(STDOUT).tap { |logger| logger.level = Logger::INFO }
+ end
+
+ def self.gem_root
+ path = File.expand_path(File.join(__FILE__, "..", ".."))
end
def self.root_path
path = Pathname.new File.join(ENV['HOME'], ".buildbox")
path.mkpath unless path.exist?