lib/place.rb
# Collect and retrieve all repo information, for each contained project
# If a project url is specified, it retrieves only info on this project
# BEWARE: each gather flush the whole database!
Collect and retrieve all repo information, for each contained project
If a project url is specified, it retrieves only info on this project
BEWARE: each gather flush the whole database!
Collect and retrieve all repo information for each contained project If a project url is specified it retrieves only info on this project BEWARE : each gather flush the whole database!
def gather!(project_url=nil)
    start_time = Time.now.to_i
    path = @conf['base']  
    Ohm.flush
	Project.collect_all(path)
    User.collect_all(path)
	unless project_url.nil?
	  prj = Project.find_by_url(project_url)
	  prj.retrieve
	else
      Project.all.each{|prj| prj.retrieve}
	end
	Ohm.redis.set 'updated_duration', Time.now.to_i - start_time
  end
def gather! ( project_url = nil ) start_time = Time . now . to_i path = @conf [ 'base' ] Ohm . flush Project . collect_all ( path ) User . collect_all ( path ) unless project_url . nil? prj = Project . find_by_url ( project_url ) prj . retrieve else Project . all . each { | prj | prj . retrieve } end Ohm . redis . set 'updated_duration' , Time . now . to_i - start_time end
Collect and retrieve all repo information, for each contained project
If a project url is specified, it retrieves only info on this project
BEWARE: each gather flush the whole database!
Collect and retrieve all repo information for each contained project If a project url is specified it retrieves only info on this project BEWARE : each gather flush the whole database!
# without ending '.polarion'
project_url
<not_specific>