lib/generators/sufia/models/install_generator.rb in sufia-models-6.0.0 vs lib/generators/sufia/models/install_generator.rb in sufia-models-6.1.0
- old
+ new
@@ -15,11 +15,11 @@
8. Runs cached stats generator
9. Runs ORCID field generator
10. Runs user stats generator
"""
def banner
- say_status("warning", "GENERATING SUFIA MODELS", :yellow)
+ say_status("info", "GENERATING SUFIA MODELS", :blue)
end
# Setup the database migrations
def copy_migrations
[
@@ -63,10 +63,11 @@
copy_file 'config/redis.yml', 'config/redis.yml'
copy_file 'config/resque-pool.yml', 'config/resque-pool.yml'
copy_file 'config/redis_config.rb', 'config/initializers/redis_config.rb'
copy_file 'config/resque_admin.rb', 'config/initializers/resque_admin.rb'
copy_file 'config/resque_config.rb', 'config/initializers/resque_config.rb'
+ copy_file 'config/resque.rake', 'lib/tasks/resque.rake'
end
def create_collection
copy_file 'app/models/collection.rb', 'app/models/collection.rb'
end
@@ -100,7 +101,12 @@
end
# Adds user stats-related migration & methods
def user_stats
generate 'sufia:models:user_stats'
+ end
+
+ # Adds clamav initializtion
+ def clamav
+ generate 'sufia:models:clamav'
end
end