Class: Basketcase::AutoCheckinCommand
- Inherits:
-
AutoCommand
- Object
- Command
- AutoCommand
- Basketcase::AutoCheckinCommand
- Defined in:
- lib/basketcase.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from AutoCommand
#each_element, #find_checkouts
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
839 840 841 842 843 844 845 846 |
# File 'lib/basketcase.rb', line 839 def execute checked_out_elements = find_checkouts if checked_out_elements.empty? puts "Nothing to check-in" return end run(CheckinCommand, '-m', comment, *checked_out_elements) end |
#help ⇒ Object
833 834 835 836 837 |
# File 'lib/basketcase.rb', line 833 def help <<EOF Bulk commit: check-in all checked-out elements. EOF end |
#synopsis ⇒ Object
829 830 831 |
# File 'lib/basketcase.rb', line 829 def synopsis "[<element> ...]" end |