module Dockly::BuildCache
end

require 'dockly/build_cache/base'
require 'dockly/build_cache/docker'
require 'dockly/build_cache/local'

module Dockly::BuildCache
  class << self
    attr_writer :model

    def model
      @model ||= Dockly::BuildCache::Docker
    end
  end
end

module Dockly::BuildCache
end

module Dockly::BuildCache
  autoload :Base, 'dockly/build_cache/base'
  autoload :Docker, 'dockly/build_cache/docker'
  autoload :Local, 'dockly/build_cache/local'

  class << self
    attr_writer :model

    def model
      @model ||= Dockly::BuildCache::Docker
    end
  end
end

Use autoload like everywhere else
Use autoload like everywhere else
