Sha256: 4305550f4b3e3f59633f38cc19dc0fe6de9fbd58533c3ac32b256f45db74df4c

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 Bytes

Contents

require 'puppet-debugger/input_responder_plugin'
module PuppetDebugger
  module InputResponders
    class Datatypes < InputResponderPlugin
      COMMAND_WORDS = %w(datatypes)
      SUMMARY = 'List all the datatypes available in the environment.'
      COMMAND_GROUP = :environment

      def run(args = [])
        types = debugger.all_data_types
        return types.sort.ai if types.instance_of?(Array)
        types
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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