Class: Basketcase::RemoveCommand
- Inherits:
-
DirectoryModificationCommand
- Object
- Command
- DirectoryModificationCommand
- Basketcase::RemoveCommand
- Defined in:
- lib/basketcase.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from DirectoryModificationCommand
#checkout, #find_locked_elements, #unlock_parent_directories
Methods inherited from Command
#accept_args, #effective_targets, #initialize, #option_comment, #option_graphical, #option_recurse, #report, #specified_targets
Methods included from Utils
Constructor Details
This class inherits a constructor from Basketcase::Command
Instance Method Details
#execute ⇒ Object
380 381 382 383 384 385 386 387 388 389 390 391 392 |
# File 'lib/basketcase.rb', line 380 def execute unlock_parent_directories(specified_targets) cleartool_unsafe("rmname -ncomment #{specified_targets}") do |line| case line when /^Unloaded / # ignore when /^Removed "(.+)"\./ report(:REMOVED, mkpath($1)) else cannot_deal_with line end end end |
#help ⇒ Object
373 374 375 376 377 378 |
# File 'lib/basketcase.rb', line 373 def help <<EOF Mark an element as deleted. (Parent directories are checked-out automatically) EOF end |
#synopsis ⇒ Object
369 370 371 |
# File 'lib/basketcase.rb', line 369 def synopsis "<element> ..." end |