Class: Perus::Pinger::RemovePath
- Defined in:
- lib/perus/pinger/commands/remove_path.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
abstract!, abstract?, #cleanup, #darwin?, description, human_name, inherited, #initialize, metric!, metric?, option, options, #shell, subclasses
Constructor Details
This class inherits a constructor from Perus::Pinger::Command
Instance Method Details
#run ⇒ Object
10 11 12 13 |
# File 'lib/perus/pinger/commands/remove_path.rb', line 10 def run FileUtils.rm_rf([File.(.path)], secure: true) true # with no exceptions, the removal was successful end |