Sha256: d2deac7b93d38d343452a7a36277851800ba87a7535b1e41dbecc3be489e272b

Contents?: true

Size: 447 Bytes

Versions: 3

Compression:

Stored size: 447 Bytes

Contents

module Dradis
  module Plugins
    module Pentera
      class FieldProcessor < Dradis::Plugins::Upload::FieldProcessor
        def value(args = {})
          field = args[:field]

          # fields in the template are of the form <foo>.<field>, where <foo>
          # is common across all fields for a given template (and meaningless).
          _, name = field.split('.')

          @data[name] || 'n/a'
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dradis-pentera-4.15.0 lib/dradis/plugins/pentera/field_processor.rb
dradis-pentera-4.14.0 lib/dradis/plugins/pentera/field_processor.rb
dradis-pentera-4.13.0 lib/dradis/plugins/pentera/field_processor.rb