Module: DataExporter

Defined in:
lib/data_exporter.rb,
lib/data_exporter/cli.rb,
lib/data_exporter/actions.rb,
lib/data_exporter/archive.rb,
lib/data_exporter/version.rb,
lib/data_exporter/configuration.rb

Defined Under Namespace

Modules: Actions Classes: Archive, CLI, Configuration

Constant Summary collapse

IGNORED_TABLES =
%w(schema_migrations checksums)
VERSION =
'1.3.7'

Class Method Summary collapse

Class Method Details

.configurationObject Also known as: config



8
9
10
# File 'lib/data_exporter.rb', line 8

def configuration
  @configuration ||= DataExporter::Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



13
14
15
# File 'lib/data_exporter.rb', line 13

def configure(&block)
  yield configuration
end

.database_connectionObject



17
18
19
# File 'lib/data_exporter.rb', line 17

def database_connection
  ActiveRecord::Base.establish_connection(configuration.database)
end