Class: Proxy::OpenSCAP::SpoolForwarder
- Inherits:
-
Object
- Object
- Proxy::OpenSCAP::SpoolForwarder
- Includes:
- Log
- Defined in:
- lib/smart_proxy_openscap/spool_forwarder.rb
Instance Method Summary collapse
-
#initialize(loaded_settings) ⇒ SpoolForwarder
constructor
A new instance of SpoolForwarder.
- #post_arf_from_spool(arf_dir) ⇒ Object
Constructor Details
#initialize(loaded_settings) ⇒ SpoolForwarder
Returns a new instance of SpoolForwarder.
5 6 7 |
# File 'lib/smart_proxy_openscap/spool_forwarder.rb', line 5 def initialize(loaded_settings) @loaded_settings = loaded_settings end |
Instance Method Details
#post_arf_from_spool(arf_dir) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/smart_proxy_openscap/spool_forwarder.rb', line 9 def post_arf_from_spool(arf_dir) Dir.foreach(arf_dir) do |cname| next if cname == '.' || cname == '..' cname_dir = File.join(arf_dir, cname) forward_cname_dir(cname, cname_dir) if File.directory?(cname_dir) end end |