Sha256: 1606adac162d535e4a3b65acba652c7a5d3710bff85f2cc81926a60ceed23e6e

Contents?: true

Size: 237 Bytes

Versions: 95

Compression:

Stored size: 237 Bytes

Contents

module Mysql
  class BinLogPositionFile
    attr_accessor :path

    def initialize(path)
      @path = path
    end

    def exists?
      File.exists?(@path)
    end

    def read
      File.open(@path) {|f| f.read }
    end
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
flydata-0.6.11 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.6.10 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.6.9 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.6.8 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.6.7 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.6.6 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.6.5 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.6.4 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.6.3 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.6.2 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.6.1 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.6.0 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.5.21 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.5.20 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.5.17 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.5.16 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.5.15 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.5.14 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.5.13 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb
flydata-0.5.12 lib/flydata/fluent-plugins/mysql/binlog_position_file.rb