# File lib/rudy/cli/backups.rb, line 8 def backups blist = get_backups print_stobjects blist end
# File lib/rudy/cli/backups.rb, line 39 def backups_create @dlist.each do |d| li "Creating backup for #{d.name}" back = d.archive li back end end
# File lib/rudy/cli/backups.rb, line 31 def backups_create_valid? @dlist = Rudy::Disks.list raise "No disks" if @dlist.nil? raise "No path provided" unless @argv.first raise "Disk does not exist" unless Rudy::Disks.exists? @argv.first true end
# File lib/rudy/cli/backups.rb, line 13 def backups_wash dirt = (get_backups || []).select { |b| !b.snapshot_exists? } if dirt.empty? li "Nothing to wash in #{current_machine_group}" return end li "The following backup metadata will be deleted:" li dirt.collect {|b| b.name } execute_check(:medium) dirt.each do |b| b.destroy end end
Generated with the Darkfish Rdoc Generator 2.