10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# 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}") end
end
|