Module: Athar

Defined in:
lib/athar.rb,
lib/athar/sql.rb,
lib/athar/engine.rb,
lib/athar/context.rb,
lib/athar/version.rb,
lib/athar/deletion.rb,
lib/athar/retention.rb,
lib/athar/table_event.rb,
lib/athar/actor_lookup.rb,
lib/athar/configuration.rb,
lib/athar/retention_job.rb,
lib/athar/metadata_stack.rb,
lib/generators/athar/fx_helper.rb,
lib/generators/athar/model/model_generator.rb,
lib/generators/athar/install/install_generator.rb

Defined Under Namespace

Modules: ActorLookup, Context, Generators, Retention, SQL Classes: Configuration, ConfigurationError, Deletion, Engine, Error, MetadataStack, RetentionJob, TableEvent

Constant Summary collapse

VERSION =
"0.1.0"
DELETIONS_TABLE_NAME =
"athar_deletions"
TABLE_EVENTS_TABLE_NAME =
"athar_table_events"

Class Method Summary collapse

Class Method Details

.configurationObject



26
27
28
# File 'lib/athar.rb', line 26

def configuration
  @configuration ||= Configuration.new
end

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

Yields:



30
31
32
# File 'lib/athar.rb', line 30

def configure
  yield(configuration)
end

.loggerObject



38
39
40
# File 'lib/athar.rb', line 38

def logger
  configuration.logger || (Rails.logger if defined?(Rails)) || Logger.new($stdout)
end

.reset_configuration!Object



34
35
36
# File 'lib/athar.rb', line 34

def reset_configuration!
  @configuration = Configuration.new
end

.with_actorObject



42
43
44
# File 'lib/athar.rb', line 42

def with_actor(...)
  Context.with_actor(...)
end

.with_contextObject



50
51
52
# File 'lib/athar.rb', line 50

def with_context(...)
  Context.with_context(...)
end

.with_metadataObject



46
47
48
# File 'lib/athar.rb', line 46

def (...)
  Context.(...)
end

.without_captureObject



54
55
56
# File 'lib/athar.rb', line 54

def without_capture(...)
  Context.without_capture(...)
end