F #6063: Backup Jobs for OpenNebula

Includes the following changes:
- xml-schema for Backup Job and Scheduled Actions
- GO, Java api
- Deprecate onevm update-chart, delete-chart
    * The commands are replaced by sched-update and sched-delete
    * Refactor method deprecate_command, it's still possible to run the
    command
    * Delete 'shutdown' and 'delete' commands deprecated years ago
    * Fix --verbose option for sched-update and sched-delete
- Re-implementation of scheduled actions, now are managed and executed
  by oned
- Backup Job objects, API, and CLI commands
This commit is contained in:
Ruben S. Montero committed 2023-07-03 18:15:52 +02:00
1 parent 90585e42cf
commit 6bbfbb03e4
116 files changed
+8303 -2562

No files matched your search

+2 -9
View File
@@ -312,15 +312,9 @@ module CommandParser
end
def deprecated_command(name, new_command)
cmd = Hash.new
cmd[:desc] = "Deprecated, use #{new_command} instead"
cmd[:arity] = 0
cmd[:options] = []
cmd[:args_format] = [[:string, nil]] * 20
cmd = @commands[name.to_sym] || Hash.new
cmd[:desc] += "\nDeprecated, use #{new_command} instead"
cmd[:deprecated] = new_command
cmd[:proc] = lambda do
print_deprecated(new_command)
end
@commands[name.to_sym] = cmd
end
@@ -800,7 +794,6 @@ module CommandParser
def print_deprecated(new_command)
puts "This command is deprecated, use instead:"
puts " $ #{File.basename $0} #{new_command}"
exit(-1)
end
def word_wrap(size, text, first_size=nil)