Sha256: c8d1be41bae1899a845410bd8f200a72aa4f662f75b580bce651d1f0f3b77b40

Contents?: true

Size: 613 Bytes

Versions: 7

Compression:

Stored size: 613 Bytes

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

# 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

7 entries across 7 versions & 1 rubygems

Version Path
arachni-1.0.6 lib/arachni/component/options/path.rb
arachni-1.0.5 lib/arachni/component/options/path.rb
arachni-1.0.4 lib/arachni/component/options/path.rb
arachni-1.0.3 lib/arachni/component/options/path.rb
arachni-1.0.2 lib/arachni/component/options/path.rb
arachni-1.0.1 lib/arachni/component/options/path.rb
arachni-1.0 lib/arachni/component/options/path.rb