Class: Hyrax::ClamavGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/hyrax/clamav_generator.rb

Instance Method Summary collapse

Instance Method Details



13
14
15
# File 'lib/generators/hyrax/clamav_generator.rb', line 13

def banner
  say_status('info', 'Generating clamav initializers', :blue)
end

#create_initializer_fileObject



17
18
19
# File 'lib/generators/hyrax/clamav_generator.rb', line 17

def create_initializer_file
  copy_file 'config/clamav.rb', 'config/initializers/clamav.rb'
end