# vim: ft=ruby:sts=2:expandtab namespace :deploy do

desc "display last revision log line"
task :last_revision do
  on roles(:all) do
    execute "cd #{fetch(:deploy_to)} && tail -n1 revisions.log"
  end
end

task "fixknownhosts" do
  on roles(:all) do
    execute "ssh -o PasswordAuthentication=no -o StrictHostKeyChecking=no #{fetch(:t3_live_sync)['dbsync']['ssh_user']}@#{fetch(:t3_live_sync)['dbsync']['ssh_server']} uptime"
  end
end

end