Update files before checkout
This sample is a Ruby script that ensures that files are up to date before you check them out.
#!/usr/bin/ruby
files = ''
STDIN.readlines.each do |line|
files << " " << line
end
system("cm update #{files}")
Trigger creation command (Windows)
cm trigger create before-clientcheckout "update before co" "ruby c:\plastic\triggers\update-before-co.rb"