Class: ActiveGit::FolderRemove
- Inherits:
-
Object
- Object
- ActiveGit::FolderRemove
- Defined in:
- lib/active_git/events/folder_remove.rb
Instance Method Summary collapse
-
#initialize(working_path) ⇒ FolderRemove
constructor
A new instance of FolderRemove.
- #synchronize(synchronizer) ⇒ Object
Constructor Details
#initialize(working_path) ⇒ FolderRemove
Returns a new instance of FolderRemove.
4 5 6 |
# File 'lib/active_git/events/folder_remove.rb', line 4 def initialize(working_path) @working_path = working_path end |
Instance Method Details
#synchronize(synchronizer) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/active_git/events/folder_remove.rb', line 8 def synchronize(synchronizer) synchronizer.define_job do ActiveGit.configuration.logger.debug "[ActiveGit] Removing folder #{@working_path}" FileUtils.rm_rf @working_path end end |