Class: R10K::Util::Cleaner
- Inherits:
-
Object
- Object
- R10K::Util::Cleaner
- Defined in:
- lib/r10k/util/cleaner.rb
Constant Summary
Constants included from Purgeable
Purgeable::FN_MATCH_OPTS, Purgeable::HIDDEN_FILE
Constants included from Logging
Logging::LOG_LEVELS, Logging::SYSLOG_LEVELS_MAP
Instance Attribute Summary collapse
-
#desired_contents ⇒ Object
readonly
Returns the value of attribute desired_contents.
-
#managed_directories ⇒ Object
readonly
Returns the value of attribute managed_directories.
-
#purge_exclusions ⇒ Object
readonly
Returns the value of attribute purge_exclusions.
Instance Method Summary collapse
-
#initialize(managed_directories, desired_contents, purge_exclusions = []) ⇒ Cleaner
constructor
A new instance of Cleaner.
Methods included from Purgeable
#current_contents, #logger, #matches?, #pending_contents, #potentially_purgeable, #purge!, #stale_contents
Methods included from Logging
add_outputters, debug_formatter, default_formatter, default_outputter, #logger, #logger_name, parse_level
Constructor Details
#initialize(managed_directories, desired_contents, purge_exclusions = []) ⇒ Cleaner
Returns a new instance of Cleaner.
13 14 15 16 17 |
# File 'lib/r10k/util/cleaner.rb', line 13 def initialize(managed_directories, desired_contents, purge_exclusions = []) @managed_directories = managed_directories @desired_contents = desired_contents @purge_exclusions = purge_exclusions end |
Instance Attribute Details
#desired_contents ⇒ Object (readonly)
Returns the value of attribute desired_contents.
11 12 13 |
# File 'lib/r10k/util/cleaner.rb', line 11 def desired_contents @desired_contents end |
#managed_directories ⇒ Object (readonly)
Returns the value of attribute managed_directories.
11 12 13 |
# File 'lib/r10k/util/cleaner.rb', line 11 def managed_directories @managed_directories end |
#purge_exclusions ⇒ Object (readonly)
Returns the value of attribute purge_exclusions.
11 12 13 |
# File 'lib/r10k/util/cleaner.rb', line 11 def purge_exclusions @purge_exclusions end |