From dc101f527b20407331e7aeda05a9d416a1a4b557 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 26 Jun 2012 06:57:30 -0400 Subject: [PATCH] change how reboot is called --- lib/puppet-standalone-mashup/capistrano.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/puppet-standalone-mashup/capistrano.rb b/lib/puppet-standalone-mashup/capistrano.rb index 37a9fba..1781443 100644 --- a/lib/puppet-standalone-mashup/capistrano.rb +++ b/lib/puppet-standalone-mashup/capistrano.rb @@ -77,6 +77,11 @@ Capistrano::Configuration.instance.load do top.rename if rename_server run "cd #{puppet_dir} && #{sudo} ./bootstrap" + top.reboot + end + + desc "Reboot the server after bootstrapping" + task :reboot do run "#{sudo} shutdown -r now" end