Sha256: ad229afd3909ba4d56dbd4c6867de740f7b6c3697702da5067f6ac1c716151fc

Contents?: true

Size: 409 Bytes

Versions: 23

Compression:

Stored size: 409 Bytes

Contents

require 'puppet-debugger/input_responder_plugin'
module PuppetDebugger
  module InputResponders
    class Facts < InputResponderPlugin
      COMMAND_WORDS = %w(facts)
      SUMMARY = 'List all the facts associated with the node.'
      COMMAND_GROUP = :node

      def run(args = [])
        variables = debugger.node.facts.values
        variables.ai(sort_keys: true, indent: -1)
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
puppet-debugger-0.8.1 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.8.0 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.7.0 lib/plugins/puppet-debugger/input_responders/facts.rb