Class: Barkest::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Barkest::InstallGenerator
- Defined in:
- lib/generators/barkest/install_generator.rb
Overview
Installs Barkest modules into an application.
Instance Method Summary collapse
Instance Method Details
#install_modules ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/generators/barkest/install_generator.rb', line 14 def install_modules meth = action_name.to_s == '' ? nil : action_name.to_sym installers.each do |inst| sep = '-' + ('=---' * 19) + '=-' tell "#{sep}\nProcessing #{inst.class}\n#{sep}", :bold if meth inst.send(meth) if inst.respond_to?(meth) else inst.public_methods(false).each { |method| inst.send(method) } end end end |