global

def with_result(**attrs)

Internal: Returns a new build with the specified result.
def with_result(**attrs)
  self.class.new(
    **attrs,
    timestamp: Time.now.strftime('%F %T'),
    vite_ruby: ViteRuby::VERSION,
    digest: current_digest,
    current_digest: current_digest,
    last_build_path: last_build_path,
  )
end