bin/genZPK in genZPK-0.1.14 vs bin/genZPK in genZPK-0.1.15
- old
+ new
@@ -340,22 +340,22 @@
if not File.exists? dir + "/scripts"
FileUtils.mkpath dir + "/scripts"
end
# get the templates for the deployment configuration and pre-activation script
-scriptTemplate = getTemplate 'pre_activate.php'
+#scriptTemplate = getTemplate 'pre_activate.php'
deploymentTemplate = getTemplate 'deployment.xml'
# These are used to populate the tamplates
releaseName = options[:name]
zpkVersion = options[:version]
# Generate the files
-script = ERB.new(scriptTemplate)
+#script = ERB.new(scriptTemplate)
deployment = ERB.new(deploymentTemplate)
# Write out the files
-File.open(dir + '/scripts/pre_activate.php', 'w') {|f| f.puts(script.result(binding))}
+#File.open(dir + '/scripts/pre_activate.php', 'w') {|f| f.puts(script.result(binding))}
File.open(dir + '/deployment.xml', 'w') {|f| f.puts(deployment.result(binding))}
zpkFile = "#{options[:name]}.zpk"
\ No newline at end of file