Sha256: f1d23b4bca7bfcb4ba1ea8934acf9a516a34bd61c6210613790035860f597db9
Contents?: true
Size: 1.91 KB
Versions: 3
Compression:
Stored size: 1.91 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 module Arachni::OptionGroups # Holds paths to the directories of various system components. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class Paths < Arachni::OptionGroup attr_accessor :root attr_accessor :arachni attr_accessor :gfx attr_accessor :components attr_accessor :logs attr_accessor :executables attr_accessor :checks attr_accessor :reporters attr_accessor :plugins attr_accessor :services attr_accessor :path_extractors attr_accessor :fingerprinters attr_accessor :lib attr_accessor :support attr_accessor :mixins attr_accessor :snapshots def initialize @root = root_path @gfx = @root + 'gfx/' @components = @root + 'components/' @snapshots = @root + 'snapshots/' @logs = ENV['ARACHNI_FRAMEWORK_LOGDIR'] ? "#{ENV['ARACHNI_FRAMEWORK_LOGDIR']}/" : @root + 'logs/' @checks = @components + 'checks/' @reporters = @components + 'reporters/' @plugins = @components + 'plugins/' @services = @components + 'services/' @path_extractors = @components + 'path_extractors/' @fingerprinters = @components + 'fingerprinters/' @lib = @root + 'lib/arachni/' @executables = @lib + 'processes/executables/' @support = @lib + 'support/' @mixins = @support + 'mixins/' @arachni = @lib[0...-1] end # @return [String] Root path of the framework. def root_path File.expand_path( File.dirname( __FILE__ ) + '/../../..' ) + '/' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
arachni-1.0.2 | lib/arachni/option_groups/paths.rb |
arachni-1.0.1 | lib/arachni/option_groups/paths.rb |
arachni-1.0 | lib/arachni/option_groups/paths.rb |