class Enjoy::Cms::ScriptsGenerator
Public Instance Methods
install()
click to toggle source
# 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