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
813 814 815 |
# File 'lib/basketcase.rb', line 813 def each_element(&block) run(LsCommand, '-r', *effective_targets, &block) end |
#find_checkouts ⇒ Object
817 818 819 820 821 822 823 |
# File 'lib/basketcase.rb', line 817 def find_checkouts checkouts = [] each_element do |e| checkouts << e.path if e.status == :CO end checkouts end |