Method: Muck::Config#run

Defined in:
lib/muck/config.rb

#run(options = {}) ⇒ Object



17
18
19
20
21
22
23
24
25
26
# File 'lib/muck/config.rb', line 17

def run(options = {})
  servers.each do |server|
    server.databases.each do |database|
      if database.backup_now? || options[:force]
        database.backup
        database.archive_all
      end
    end
  end
end