class Hancock::Cms::ScriptsGenerator
Public Instance Methods
install()
click to toggle source
# File lib/generators/hancock/cms/scripts_generator.rb, line 10 def install %w( assets_precompile.sh full_assets_precompile.sh bundle_production.sh restart_thru_kill.sh send_usr2.sh send_hup.sh db_dump.sh.erb db_restore.sh server_alt.sh server.sh ).each do |template_name| script_name = template_name.match(/.+\.sh/)[0] template template_name, "scripts/#{script_name}" FileUtils.chmod(0755, "#{destination_root}/scripts/#{script_name}") # chmod: 0755 in prev line doesnt work end end