lib/buildbox.rb in buildbox-0.1.1 vs lib/buildbox.rb in buildbox-0.1.4

- old
+ new

@@ -1,6 +1,7 @@ require 'pathname' +require 'logger' module Buildbox autoload :API, "buildbox/api" autoload :Build, "buildbox/build" autoload :Command, "buildbox/command" @@ -8,16 +9,21 @@ 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" autoload :Worker, "buildbox/worker" autoload :VERSION, "buildbox/version" def self.config @config ||= Configuration.new.tap(&:reload) - end + end + + def self.logger + @logger ||= Logger.new(STDOUT).tap { |logger| logger.level = Logger::INFO } + end def self.root_path path = Pathname.new File.join(ENV['HOME'], ".buildbox") path.mkpath unless path.exist?