From e204ef039f5bf9f39ae79d466a7096bee673c0de Mon Sep 17 00:00:00 2001 From: Godwin Date: Sun, 6 Jul 2014 19:09:52 -0600 Subject: [PATCH] Regenerate images rake task --- app/assets/fonts/stylesheet.css | 15 --------------- lib/tasks/regenerate.rake | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 15 deletions(-) delete mode 100644 app/assets/fonts/stylesheet.css create mode 100644 lib/tasks/regenerate.rake diff --git a/app/assets/fonts/stylesheet.css b/app/assets/fonts/stylesheet.css deleted file mode 100644 index d798597..0000000 --- a/app/assets/fonts/stylesheet.css +++ /dev/null @@ -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; - -} \ No newline at end of file diff --git a/lib/tasks/regenerate.rake b/lib/tasks/regenerate.rake new file mode 100644 index 0000000..42fb613 --- /dev/null +++ b/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