# frozen_string_literal: true

module Wombat
  module Builders
    class Base
      using Wombat::Refinements

      def self.build_path
        File.join(Wombat.root, 'tmp', 'builds', name.demodulize.underscore)
      end

      def initialize(dependency_handler)
        @dependency_handler = dependency_handler
      end

      # :nocov:
      def build(_services, _options = {})
        raise NotImplementedError, 'Builder class needs to implement build(services, options = {}) method'
      end
      # :nocov:
    end
  end
end
