Sha256: 6b4ead738b899a195a05f91f10e10dd7835f12aa52288e2c0bae512678d8e010

Contents?: true

Size: 434 Bytes

Versions: 9

Compression:

Stored size: 434 Bytes

Contents

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

      def run(args = [])
        filter = args.first || ''
        function_map.keys.sort.grep(/^#{Regexp.escape(filter)}/)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
puppet-debugger-0.10.3 lib/plugins/puppet-debugger/input_responders/functions.rb
puppet-debugger-0.10.2 lib/plugins/puppet-debugger/input_responders/functions.rb
puppet-debugger-0.10.1 lib/plugins/puppet-debugger/input_responders/functions.rb
puppet-debugger-0.10.0 lib/plugins/puppet-debugger/input_responders/functions.rb
puppet-debugger-0.9.1 lib/plugins/puppet-debugger/input_responders/functions.rb
puppet-debugger-0.9.0 lib/plugins/puppet-debugger/input_responders/functions.rb
puppet-debugger-0.8.1 lib/plugins/puppet-debugger/input_responders/functions.rb
puppet-debugger-0.8.0 lib/plugins/puppet-debugger/input_responders/functions.rb
puppet-debugger-0.7.0 lib/plugins/puppet-debugger/input_responders/functions.rb