Class: Basketcase::AutoCheckinCommand

Inherits:
AutoCommand show all
Defined in:
lib/basketcase.rb

Instance Attribute Summary

Attributes inherited from Command

#comment, #listener, #targets

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

#mkpath

Constructor Details

This class inherits a constructor from Basketcase::Command

Instance Method Details

#executeObject



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

#helpObject



555
556
557
558
559
# File 'lib/basketcase.rb', line 555

def help
  <<EOF
Bulk commit: check-in all checked-out elements.
EOF
end

#synopsisObject



551
552
553
# File 'lib/basketcase.rb', line 551

def synopsis
  "[<element> ...]"
end