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



801
802
803
804
805
806
807
# File 'lib/basketcase.rb', line 801

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

#helpObject



793
794
795
796
797
798
799
# File 'lib/basketcase.rb', line 793

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

-g          Graphical display.
EOF
end

#synopsisObject



789
790
791
# File 'lib/basketcase.rb', line 789

def synopsis
  "<element>"
end