Class: Basketcase::CheckoutCommand
Instance Attribute Summary
Attributes inherited from Command
#comment, #listener, #targets
Instance Method Summary
collapse
Methods inherited from Command
#accept_args, #effective_targets, #option_comment, #option_graphical, #option_recurse, #report, #specified_targets
Methods included from Utils
#mkpath
Constructor Details
Returns a new instance of CheckoutCommand.
555
556
557
558
|
# File 'lib/basketcase.rb', line 555
def initialize(*args)
super(*args)
@keep_or_revert = '-nquery'
end
|
Instance Method Details
#execute ⇒ Object
566
567
568
569
570
571
572
573
|
# File 'lib/basketcase.rb', line 566
def execute
cleartool_unsafe("checkout -unreserved -ncomment #{@keep_or_revert} #{specified_targets}") do |line|
case line
when /^Checked out "(.+)" from version "(\S+)"\./
report(:CO, mkpath($1), $2)
end
end
end
|
#help ⇒ Object
542
543
544
|
# File 'lib/basketcase.rb', line 542
def help
""
end
|
#option_hijack ⇒ Object
Also known as:
option_h
560
561
562
|
# File 'lib/basketcase.rb', line 560
def option_hijack
@keep_or_revert = '-usehijack'
end
|
#synopsis ⇒ Object
538
539
540
|
# File 'lib/basketcase.rb', line 538
def synopsis
"<element> ..."
end
|