perforce.rb
def p4(operation, options = nil)
		p4cmd = "p4 -R -p #{@port} -c #{@clientspec} -u #{@username} -P #{@password} "
		p4cmd << "#{operation.to_s}"
		p4cmd << " " << options if options
		
		p4_output = Array.new
		IO.popen(p4cmd, "rb") do |file|
		  while not file.eof
		    p4_output << Marshal.load(file)
		  end
		end
		
		p4_output
  end
# Execute a P4 command, and return an array of the resulting output lines
# The array will contain a hash for each line out output
Execute a P4 command, and return an array of the resulting output lines
The array will contain a hash for each line out output
Execute a P4 command and return an array of the resulting output lines The array will contain a hash for each line out output
def p4(operation, options = nil)
		p4cmd = "p4 -R -p #{@port} -c #{@clientspec} -u #{@username} -P #{@password} "
		p4cmd << "#{operation.to_s}"
		p4cmd << " " << options if options
		p4_output = Array.new
		IO.popen(p4cmd, "rb") do |file|
		  while not file.eof
		    p4_output << Marshal.load(file)
		  end
		end
		p4_output
  end
def p4 ( operation , options = nil ) p4cmd = "p4 -R -p #{@port} -c #{@clientspec} -u #{@username} -P #{@password} " p4cmd << "#{operation.to_s}" p4cmd << " " << options if options p4_output = Array . new IO . popen ( p4cmd , "rb" ) do | file | while not file . eof p4_output << Marshal . load ( file ) end end p4_output end
Execute a P4 command, and return an array of the resulting output lines
The array will contain a hash for each line out output
Execute a P4 command and return an array of the resulting output lines The array will contain a hash for each line out output
operation
options