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



813
814
815
# File 'lib/basketcase.rb', line 813

def each_element(&block)
  run(LsCommand, '-r', *effective_targets, &block)
end

#find_checkoutsObject



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