Class: Prometheus::CleanupMultiprocDirService

Inherits:
Object
  • Object
show all
Includes:
Gitlab::Utils::StrongMemoize
Defined in:
lib/prometheus/cleanup_multiproc_dir_service.rb

Instance Method Summary collapse

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Instance Method Details

#executeObject


7
8
9
# File 'lib/prometheus/cleanup_multiproc_dir_service.rb', line 7

def execute
  FileUtils.rm_rf(old_metrics) if old_metrics
end