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
561 562 563 564 565 566 567 568 |
# File 'lib/basketcase.rb', line 561 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
555 556 557 558 559 |
# File 'lib/basketcase.rb', line 555 def help <<EOF Bulk commit: check-in all checked-out elements. EOF end |
#synopsis ⇒ Object
551 552 553 |
# File 'lib/basketcase.rb', line 551 def synopsis "[<element> ...]" end |