Sha256: fcb5ae8bbe18dbf37741ce26188aa8876aae3ad42923166974977c12976e378c

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

module MysqlReplicationHelper
  class Daemon
    def initialize(options)
      @options = options
      
      @options[:master] = @master = Agent::Master.new(options)
      @options[:slave] = @slave = Agent::Slave.new(options)
    end
    
    def run!
      while (true)
        @master.poll!
        @slave.poll!
        sleep(10)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
theworkinggroup-mysql-replication-helper-0.2.0 lib/mysql_replication_helper/daemon.rb
mysql-replication-helper-0.2.1 lib/mysql_replication_helper/daemon.rb