Class: Basketcase::VersionTreeCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/basketcase.rb

Instance Attribute Summary

Attributes inherited from Command

#comment, #listener, #targets

Instance Method Summary collapse

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



523
524
525
526
527
528
529
# File 'lib/basketcase.rb', line 523

def execute
  args = ''
  args += ' -graphical' if @graphical
  cleartool("lsvtree #{args} #{effective_targets}") do |line|
    puts line
  end
end

#helpObject



515
516
517
518
519
520
521
# File 'lib/basketcase.rb', line 515

def help
  <<EOF
Display a version-tree of specified elements.

-g          Graphical display.
EOF
end

#synopsisObject



511
512
513
# File 'lib/basketcase.rb', line 511

def synopsis
  "<element>"
end