Browse Source

Regenerate images rake task

development
Godwin 11 years ago
parent
commit
e204ef039f
  1. 15
      app/assets/fonts/stylesheet.css
  2. 19
      lib/tasks/regenerate.rake

15
app/assets/fonts/stylesheet.css

@ -1,15 +0,0 @@
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on June 29, 2014 */
@font-face {
font-family: 'Alte Haas Grotesk';
src: url('altehaasgroteskbold-webfont.eot');
src: url('altehaasgroteskbold-webfont.eot?#iefix') format('embedded-opentype'),
url('altehaasgroteskbold-webfont.woff') format('woff'),
url('altehaasgroteskbold-webfont.ttf') format('truetype'),
url('altehaasgroteskbold-webfont.svg#alte_haas_groteskbold') format('svg');
font-weight: normal;
font-style: normal;
}

19
lib/tasks/regenerate.rake

@ -0,0 +1,19 @@
namespace :regenerate do
desc "Regenerates images"
task conference_posters: :environment do
Conferences.all.each {|m| m.poster.recreate_versions!}
end
task organization_avatars: :environment do
Organization.all.each {|m| m.avatar.recreate_versions!}
end
task conference_covers: :environment do
Conferences.all.each {|m| m.cover.recreate_versions!}
end
task organization_covers: :environment do
Organization.all.each {|m| m.cover.recreate_versions!}
end
end
Loading…
Cancel
Save