Method: Higgs::Utils::BackupManager#initialize

Defined in:
lib/higgs/utils/bman.rb

#initialize(options = {}) ⇒ BackupManager

Returns a new instance of BackupManager.



169
170
171
172
173
174
175
176
177
178
179
180
181
182
# File 'lib/higgs/utils/bman.rb', line 169

def initialize(options={})
  @from = options[:from]
  to_dir = options[:to_dir]
  to_name = options[:to_name] || (@from && File.basename(@from))
  @to = File.join(to_dir, to_name) if (to_dir && to_name)
  @remote_services_uri = options[:remote_services_uri]
  if (options.key? :drb_service_autostart) then
    @drb_service_autostart = options[:drb_service_autostart]
  else
    @drb_service_autostart = true
  end
  @verbose = options[:verbose] || 0
  @out = options[:out] || STDOUT
end