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



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

#helpObject



833
834
835
836
837
# File 'lib/basketcase.rb', line 833

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

#synopsisObject



829
830
831
# File 'lib/basketcase.rb', line 829

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