4
0
mirror of https://git.coop/cotech/website.git synced 2025-06-26 16:40:52 +00:00

Add script to migrate co-op logos

This commit is contained in:
Chris Lowis
2018-11-09 21:50:57 +00:00
parent a453d287ce
commit 986b76fe43
2 changed files with 15 additions and 0 deletions

View File

@ -82,6 +82,10 @@ class Coop
doc.xpath('/html/body/div/div[2]/div/div/div[2]/section[1]').text.strip
end
def logo
doc.xpath('//*[@id="page-banner"]/div/div/a[1]/img/@src').text
end
def erb_binding
binding
end