Sha256: bb852911dbd7f5da07cae1dc2168d3e4af5df94cbac950467044cb7ee8b84626

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

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

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
=end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
arachni-0.4.7 spec/support/fixtures/plugins/with_options.rb
arachni-0.4.6 spec/support/fixtures/plugins/with_options.rb