class Piston::Commands::Lock
Public Class Methods
detailed_help()
click to toggle source
# File lib/piston/commands/lock.rb, line 21 def self.detailed_help <<EOF usage: lock DIR [DIR [...]] Locked folders will not be updated to the latest revision when updating. EOF end
help()
click to toggle source
# File lib/piston/commands/lock.rb, line 17 def self.help "Lock one or more folders to their current revision" end
Public Instance Methods
run()
click to toggle source
# File lib/piston/commands/lock.rb, line 7 def run raise Piston::CommandError, "No targets to run against" if args.empty? args.each do |dir| remote_rev = svn(:propget, Piston::REMOTE_REV, dir).chomp.to_i svn :propset, Piston::LOCKED, remote_rev, dir logging_stream.puts "'#{dir}' locked at revision #{remote_rev}" end end