require 'tmpdir'

require 'thrift'
require 'chalk-log'

require 'thrifty/version'

require 'thrifty/manager'
require 'thrifty/thrift_file'

module Thrifty
  def self.manager
    @manager ||= Thrifty::Manager.new
  end

  [:register, :require, :build_root, :compile_all].each do |method|
    define_singleton_method(method) do |*args, &blk|
      manager.send(method, *args, &blk)
    end
  end
end

require 'tmpdir'

require 'thrift'
require 'chalk-log'

require 'thrifty/version'

require 'thrifty/manager'
require 'thrifty/thrift_file'

module Thrifty
  def self.manager
    @manager ||= Thrifty::Manager.new
  end

  [
    :register, :require, :build_root, :build_root=, :compile_all
  ].each do |method|
    define_singleton_method(method) do |*args, &blk|
      manager.send(method, *args, &blk)
    end
  end
end

Make build_root settable at the top level
Make build_root settable at the top level
