Skip to content

Commit

Permalink
takes wiki page selector to external
Browse files Browse the repository at this point in the history
  • Loading branch information
tosik committed Sep 5, 2011
1 parent 957ed64 commit 2ed129e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/redmine_wiki_exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,16 @@ def wiki_urls
}
end

def scraping_selector=(selector)
@scraping_selector = selector
end
def scraping_selector
@scraping_selector
end

def scrape
wiki_urls.select {|url| url.to_s.include? "Spec_"}.each do |url|
wiki_urls.select(&scraping_selector).each do |url|
save(url.split('/').last)
end
end
end

0 comments on commit 2ed129e

Please sign in to comment.