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.19.0 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.18.0 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.17.0 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.16.0 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.15.2 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.15.1 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.15.0 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.14.0 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.13.0 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.12.3 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.12.2 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.12.1 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.12.0 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.11.0 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.10.3 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.10.2 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.10.1 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.10.0 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.9.1 lib/plugins/puppet-debugger/input_responders/facts.rb
puppet-debugger-0.9.0 lib/plugins/puppet-debugger/input_responders/facts.rb