class RBarman::Servers
An array of {Server}
Public Class Methods
all(opts={})
click to toggle source
Instructs the underlying (barman) command to get all servers @param [Hash] opts options for creating {Servers} @option opts [Boolean] :with_backups whether to include {Backups} @option opts [Boolean] :with_wal_files whether to include {WalFiles} @return [Servers] an array of {Server}
# File lib/rbarman/server.rb, line 82 def self.all(opts={}) cmd = CliCommand.new return Servers.new(cmd.servers(opts)) end
new(other=nil)
click to toggle source
Initializes a new Array of {Server} @param [Array, Servers] other appends all servers from another array
# File lib/rbarman/server.rb, line 73 def initialize(other=nil) self.concat(other) if !other.nil? and other.is_a? Array end