Class: Basketcase::AutoCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/basketcase.rb

Instance Attribute Summary

Attributes inherited from Command

#comment, #listener, #targets

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

#mkpath

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_checkoutsObject



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