Sha256: 7766e49600ff827273fe7963c812ec5b14a8b78f2a7a90ef7de81d172dec5661

Contents?: true

Size: 640 Bytes

Versions: 5

Compression:

Stored size: 640 Bytes

Contents

# frozen_string_literal: true

require 'puppet-debugger/input_responder_plugin'
module PuppetDebugger
  module InputResponders
    class Reset < InputResponderPlugin
      COMMAND_WORDS = %w[reset].freeze
      SUMMARY = 'Reset the debugger to a clean state.'
      COMMAND_GROUP = :context

      def run(_args = [])
        debugger.set_scope(nil)
        debugger.set_remote_node_name(nil)
        debugger.set_node(nil)
        debugger.set_facts(nil)
        debugger.set_environment(nil)
        debugger.set_compiler(nil)
        # debugger.handle_input(":set loglevel #{debugger.log_level}")
        nil
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puppet-debugger-1.4.0 lib/plugins/puppet-debugger/input_responders/reset.rb
puppet-debugger-1.3.0 lib/plugins/puppet-debugger/input_responders/reset.rb
puppet-debugger-1.2.0 lib/plugins/puppet-debugger/input_responders/reset.rb
puppet-debugger-1.1.0 lib/plugins/puppet-debugger/input_responders/reset.rb
puppet-debugger-1.0.0 lib/plugins/puppet-debugger/input_responders/reset.rb