libdir = File.dirname(__FILE__) $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir) ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__) require "bundler/setup" Bundler.require module Saber autoload :VERSION, "saber/version" autoload :UI, "saber/ui" autoload :Task, "saber/task" autoload :CLI, "saber/cli" Error = Class.new Exception FatalError = Class.new Exception Rc = Optimism.require "saber/rc", "~/.saberrc" class << self attr_accessor :ui def ui @ui ||= UI.new end end end