Sha256: e02ea0db6772ef9588662ae49553e01954668ed5e169e1eca869f093d6637e99

Contents?: true

Size: 613 Bytes

Versions: 6

Compression:

Stored size: 613 Bytes

Contents

=begin
    Copyright 2010-2015 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

# Network address option.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class Arachni::Component::Options::Path < Arachni::Component::Options::Base

    def valid?
        return false if !super
        File.exists?( effective_value )
    end

    def type
        :path
    end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 lib/arachni/component/options/path.rb
arachni-1.3.1 lib/arachni/component/options/path.rb
arachni-1.3 lib/arachni/component/options/path.rb
arachni-1.2.1 lib/arachni/component/options/path.rb
arachni-1.2 lib/arachni/component/options/path.rb
arachni-1.1 lib/arachni/component/options/path.rb