1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

feature-307: onehost sync

This commit is contained in:
Jaime Melis 2010-08-30 16:34:08 +02:00
parent 87f71392d5
commit b953ffea36

View File

@ -187,6 +187,9 @@ Commands:
* top (Lists hosts continuously)
onehost top
* sync (synchronizes probes with remote hosts)
onehost sync
EOT
def text_commands
@ -357,6 +360,14 @@ when "disable"
end
end
when "sync"
check_parameters("sync", 0)
if ONE_LOCATION
FileUtils.touch "#{ONE_LOCATION}/lib/remotes"
else
FileUtils.touch "/var/lib/one/remotes"
end
else
onehost_opts.print_help
exit -1