Class: Enjoy::Cms::ScriptsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Enjoy::Cms::ScriptsGenerator
- Defined in:
- lib/generators/enjoy/cms/scripts_generator.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/generators/enjoy/cms/scripts_generator.rb', line 10 def install %w( assets_precompile.sh bundle_production.sh full_assets_precompile.sh restart_thru_kill.sh send_usr2.sh send_hup.sh db_dump.sh.erb db_restore.sh ).each do |template_name| script_name = template_name.match(/.+\.sh/)[0] template template_name, "scripts/#{script_name}" end end |