Class: Basketcase::AutoCommand
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
#accept_args, #effective_targets, #help, #initialize, #option_comment, #option_graphical, #option_recurse, #report, #specified_targets, #synopsis
Methods included from Utils
Constructor Details
This class inherits a constructor from Basketcase::Command
Instance Method Details
#each_element(&block) ⇒ Object
535 536 537 |
# File 'lib/basketcase.rb', line 535 def each_element(&block) run(LsCommand, '-r', *effective_targets, &block) end |
#find_checkouts ⇒ Object
539 540 541 542 543 544 545 |
# File 'lib/basketcase.rb', line 539 def find_checkouts checkouts = [] each_element do |e| checkouts << e.path if e.status == :CO end checkouts end |