class RBarman::WalFiles
An Array of WalFile
Public Class Methods
by_id(server, backup_id)
click to toggle source
Instructs the underlying (barman) command to get all wal files for a specific backup id @param [String] server server name @param [String] backup_id id of the backup @return [WalFiles] an array of {WalFile}
# File lib/rbarman/wal_files.rb, line 17 def self.by_id(server, backup_id) cmd = CliCommand.new return WalFiles.new(cmd.wal_files(server, backup_id)) end
new(other=nil)
click to toggle source
Initializes a new Array of {WalFile} @param [Array,WalFiles] other appends all wal files from another array
# File lib/rbarman/wal_files.rb, line 9 def initialize(other=nil) self.concat(other) if !other.nil? and other.is_a? Array end