You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: context.rb
    path of file: ./repos/hyperstack/ruby/hyperstack-config/lib/hyperstack
    
    the code of the file until where you have to start completion: module Hyperstack
  # Allows interactive systems to reset context to the state at boot. Any
  # modules or classes that set context instance variables to hold things like
  # call backs should use Hyperstack::Context.set_var(self, :@var_name) { ...
    
    def self.reset!(reboot = true)
      # if @context is already initialized then reset all the instance
      # vars using their corresponding blocks.  Otherwise initialize
      # @context.
      if @context
        @context.each do |ctx, vars|
          # be careful:  You can't dup nil, hence `init && init.dup`
          vars.each { |var, init| ctx.instance_variable_set(var, init && init.dup) }
        end
        Hyperstack::Application::Boot.run if reboot
      else
        @context = Hash.new { |h, k| h[k] = {} }
      end