Revision 36906272 src/onedb/onedb

View differences:

src/onedb/onedb
47 47

  
48 48
require 'cli/command_parser'
49 49
require 'onedb'
50
require 'onedb_live'
50 51
require 'opennebula'
51
require 'actions/purge_history'
52 52

  
53 53
FORCE={
54 54
    :name => "force",
......
425 425

  
426 426
    command :'purge-history' , purge_history_desc, :options=>[BACKUP] do
427 427
        begin
428
            action = OneDBAction::PurgeHistory.new
429
            action.run
428
            action = OneDBLive.new
429
            action.purge_history
430 430
        rescue Exception => e
431 431
            pp e.backtrace
432 432
            [-1, e.message]
433 433
        end
434

  
435
        0
434 436
    end
435 437

  
436 438
    ###########################################################################
......
442 444

  
443 445
    command :'purge-done' , purge_done_desc, :options=>[BACKUP] do
444 446
        begin
445
            action = OneDBAction::PurgeDoneVM.new
446
            action.run
447
            action = OneDBLive.new
448
            action.purge_done_vm
447 449
        rescue Exception => e
448 450
            pp e.backtrace
449 451
            [-1, e.message]
450 452
        end
453

  
454
        0 # exit code
451 455
    end
452 456
end

Also available in: Unified diff