Class: Flydata::SourceMysql::Sync

Inherits:
Flydata::Source::Sync show all
Defined in:
lib/flydata/source_mysql/sync.rb

Constant Summary collapse

SOURCE_PREFERENCE_NAME =
'mysql_data_entry_preference'

Constants inherited from Flydata::Source::Sync

Flydata::Source::Sync::SOURCE_TABLE_LISTS_KEYS

Instance Method Summary collapse

Methods inherited from Flydata::Source::Sync

#data_servers, #forwarder, inherited, #table_lists

Methods inherited from Flydata::Source::Component

#initialize

Constructor Details

This class inherits a constructor from Flydata::Source::Component

Instance Method Details

#setupObject


9
10
11
12
13
14
15
16
17
18
# File 'lib/flydata/source_mysql/sync.rb', line 9

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

#supported?Boolean

Returns:

  • (Boolean)

20
21
22
# File 'lib/flydata/source_mysql/sync.rb', line 20

def supported?
  true
end