Sha256: fac0814e5fa24a71f463940461703d1e465f8457113b9bfee69316857afbd8f5

Contents?: true

Size: 480 Bytes

Versions: 27

Compression:

Stored size: 480 Bytes

Contents

require 'flydata/source/sync'

module Flydata
module SourceMysql

class Sync < Source::Sync
  SOURCE_PREFERENCE_NAME = 'mysql_data_entry_preference'

  def setup
    super
    mp = de[SOURCE_PREFERENCE_NAME]
    unless mp['ssl_ca_content'].to_s.strip.empty?
      sync_fm = SyncFileManager.new(de)
      sync_fm.save_ssl_ca(mp['ssl_ca_content'])
      mp['ssl_ca'] = sync_fm.ssl_ca_path
      mp['sslca'] = mp['ssl_ca']
    end
  end

  def supported?
    true
  end
end

end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
flydata-0.8.10.2 lib/flydata/source_mysql/sync.rb
flydata-0.8.10.1 lib/flydata/source_mysql/sync.rb
flydata-0.8.9.11 lib/flydata/source_mysql/sync.rb
flydata-0.8.10 lib/flydata/source_mysql/sync.rb
flydata-0.8.9 lib/flydata/source_mysql/sync.rb
flydata-0.8.8 lib/flydata/source_mysql/sync.rb
flydata-0.8.7 lib/flydata/source_mysql/sync.rb
flydata-0.8.6 lib/flydata/source_mysql/sync.rb
flydata-0.8.5 lib/flydata/source_mysql/sync.rb
flydata-0.8.4 lib/flydata/source_mysql/sync.rb
flydata-0.8.3 lib/flydata/source_mysql/sync.rb
flydata-0.8.2 lib/flydata/source_mysql/sync.rb
flydata-0.8.1 lib/flydata/source_mysql/sync.rb
flydata-0.8.0 lib/flydata/source_mysql/sync.rb
flydata-0.7.19 lib/flydata/source_mysql/sync.rb
flydata-0.7.18 lib/flydata/source_mysql/sync.rb
flydata-0.7.17 lib/flydata/source_mysql/sync.rb
flydata-0.7.16 lib/flydata/source_mysql/sync.rb
flydata-0.7.15 lib/flydata/source_mysql/sync.rb
flydata-0.7.14 lib/flydata/source_mysql/sync.rb