lib/capistrano-maven.rb in capistrano-maven-0.1.0 vs lib/capistrano-maven.rb in capistrano-maven-0.1.1
- old
+ new
@@ -105,11 +105,11 @@
}
if top.namespaces.key?(:multistage)
after "multistage:ensure", "mvn:setup_default_environment"
else
- on :start do
+ on :load do
if top.namespaces.key?(:multistage)
after "multistage:ensure", "mvn:setup_default_environment"
else
setup_default_environment
end
@@ -233,10 +233,10 @@
update_locally if mvn_update_locally
}
}
_cset(:mvn_update_hook_type, :after)
_cset(:mvn_update_hook, "deploy:finalize_update")
- on(:start) do
+ on(:load) do
[ mvn_update_hook ].flatten.each do |hook|
send(mvn_update_hook_type, hook, "mvn:update") if hook
end
end