Sha256: 1db0c0b5050edee59b9182c0c6039fce8cb3aa0c71495a88095ace4ebb69c795

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 KB

Contents

=begin
    Copyright 2010-2014 Tasos Laskos <tasos.laskos@arachni-scanner.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

class Arachni::Plugins::WithOptions < Arachni::Plugin::Base
    def self.info
        {
            name:        'Component',
            description: %q{Component with options},
            author:      'Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>',
            version:     '0.1',
            options:     [
                Options::String.new(
                    'req_opt',
                    required:    true,
                    description: 'Required option'
                ),
                Options::String.new(
                    'opt_opt',
                    description: 'Optional option'
                ),
                Options::MultipleChoice.new(
                    'default_opt',
                    description: 'Option with default value',
                    default:     'value',
                    choices:     ['value', 'value2']
                )
            ]
        }
    end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arachni-1.0.6 spec/support/fixtures/plugins/with_options.rb
arachni-1.0.5 spec/support/fixtures/plugins/with_options.rb
arachni-1.0.4 spec/support/fixtures/plugins/with_options.rb
arachni-1.0.3 spec/support/fixtures/plugins/with_options.rb
arachni-1.0.2 spec/support/fixtures/plugins/with_options.rb
arachni-1.0.1 spec/support/fixtures/plugins/with_options.rb
arachni-1.0 spec/support/fixtures/plugins/with_options.rb