Class: Drupid::Updater::DeleteAction
- Inherits:
-
AbstractAction
- Object
- AbstractAction
- Drupid::Updater::DeleteAction
- Defined in:
- lib/drupid/updater.rb
Instance Attribute Summary
Attributes inherited from AbstractAction
Instance Method Summary collapse
Methods inherited from AbstractAction
Methods included from Drupid::Utils
#blah, #bzr, #compare_paths, #curl, #cvs, #debug, #dont_debug, #git, #hg, #ignore_interrupts, #interactive_shell, #odie, #ofail, #ohai, #owarn, #runBabyRun, #svn, #tempdir, #uncompress, #which, #writeFile
Constructor Details
This class inherits a constructor from Drupid::Updater::AbstractAction
Instance Method Details
#fire! ⇒ Object
736 737 738 739 740 |
# File 'lib/drupid/updater.rb', line 736 def fire! debug "Deleting #{component.local_path}" dont_debug { component.local_path.rmtree if component.local_path.exist? } @pending = false end |
#msg ⇒ Object
742 743 744 745 |
# File 'lib/drupid/updater.rb', line 742 def msg "#{Tty.yellow}[Delete]#{Tty.white} #{component.extended_name}#{Tty.reset} " + "(#{component.local_path.relative_path_from(platform.local_path)})" end |