lib/capistrano/ext/capstrap/core.rb in capstrap-0.3.3 vs lib/capistrano/ext/capstrap/core.rb in capstrap-0.4.0

- old
+ new

@@ -99,9 +99,17 @@ # def config_repo_installed? cmd_test %{-d "#{config_path}"} end +## +# Checks if the hostname is current and correct. +# +# @param [String] desired hostname +def hostname_correct?(host_name) + host_name == capture(%{hostname}).chomp +end + def update_cmd if cookbooks_rake_update %{rake update} else %{git submodule init && git submodule update}