Parent

Methods

Class/Module Index [+]

Quicksearch

Backup::Database::Base

Attributes

database_id[R]
dump_path[R]
model[R]

Public Class Methods

new(model, database_id = nil) click to toggle source

If given, database_id will be appended to the dump_filename. This is required if multiple Databases of the same class are added to the model.

# File lib/backup/database/base.rb, line 16
def initialize(model, database_id = nil)
  @model = model
  @database_id = database_id.to_s.gsub(/\W/, '_') if database_id
  @dump_path = File.join(Config.tmp_path, model.trigger, 'databases')
  load_defaults!
end

Public Instance Methods

perform!() click to toggle source
# File lib/backup/database/base.rb, line 23
def perform!
  log!(:started)
  prepare!
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.