Skip to content
Snippets Groups Projects
Commit d9dcc4ba authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

add mime task to portalmec:setup

parent e5576163
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,10 @@ namespace :portalmec do ...@@ -11,6 +11,10 @@ namespace :portalmec do
Rake::Task['import:topics'].invoke Rake::Task['import:topics'].invoke
Rake::Task['topics:define_defaults'].invoke Rake::Task['topics:define_defaults'].invoke
puts "\n Want to identify unknown mime types in learning objects' attachments? [Y/N]"
answer = STDIN.gets.chomp
Rake::Task['attachments:set_unknown'].invoke if answer =~ /y/i
puts "\n Want to generate thumnails? [Y/N]" puts "\n Want to generate thumnails? [Y/N]"
answer = STDIN.gets.chomp answer = STDIN.gets.chomp
Rake::Task['thumbnail:create_missing'].invoke if answer =~ /y/i Rake::Task['thumbnail:create_missing'].invoke if answer =~ /y/i
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment