Sha256: 9a1c239fd06b9ff8d5dfb19f6bac9307131ba67ddc1f84608bef844d15ba6542
Contents?: true
Size: 1.54 KB
Versions: 1
Compression:
Stored size: 1.54 KB
Contents
#!/usr/bin/ruby # FireAphisClearerTool (FACT) is a small project intended to make a life # with ClearCase a little bit happier. The project tries to achieve the # goal in two ways: # # 1. Create an intuitive front end for IBM Rational ClearCase SCM. # 2. Create a library that simplifies the process of development of scripts # that interact with ClearCase. # # Execute +fact+ to enter the interactive mode. # +fact+ is expected to be executed from a ClearCase view directory. # All the commands will be handled in respect to this view. # # It is possible to require +fact+ to access ClearCase from Ruby code. # Consult Fact::ClearCase for the list of the supported ClearCase operations. require "rubygems" require "fact" cc = Fact::ClearCase.new activity = Fact::Cli.choose_undelivered_activity unless activity.nil? # Come back every time to showing the files in the activity loop do file_version = Fact::Cli.choose_file_from_activity(activity) say("Fetching the file description... ") version_info = cc.get_version_info(file_version) say("Done") puts "" Fact::Cli.show_version_info(version_info) puts "" if version_info[:checkout] != "" and version_info[:checkout] != cc.get_current_view say("The file is checked out in a different view. Check it in to diff.") elsif agree("Compare with the change set predecessor?") say("Graphical diff is being opened in an external application.") cc.diff_other_version(file_version[:file], file_version[:version], version_info[:changeset_predecessor]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fact-0.1.1.a | bin/fact |