lib/anemone/admin/crawler.rb
#Add crawler record with start time, ip, hostname and process id
Add crawler record with start time, ip, hostname and process id
Add crawler record with start time ip hostname and process id
def register
          return @crawler if @crawler
          ip = self.get_ip rescue 'Unknown'
          @crawler = self.create({:state => RUNNING, :start_at => Time.now, :ip => ip})
        end
def register return @crawler if @crawler ip = self . get_ip rescue 'Unknown' @crawler = self . create ( { :state => RUNNING , :start_at => Time . now , :ip => ip } ) end
Add crawler record with start time, ip, hostname and process id
Add crawler record with start time ip hostname and process id