Class: Hanami::Model::Configurator Private

Inherits:
Object
  • Object
show all
Defined in:
lib/hanami/model/configurator.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Configuration DSL

Since:

  • 0.7.0

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_gatewayObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0


34
35
36
# File 'lib/hanami/model/configurator.rb', line 34

def _gateway
  @_gateway
end

#_loggerObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0


30
31
32
# File 'lib/hanami/model/configurator.rb', line 30

def _logger
  @_logger
end

#_migrationsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.7.0


22
23
24
# File 'lib/hanami/model/configurator.rb', line 22

def _migrations
  @_migrations
end

#_schemaObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.7.0


26
27
28
# File 'lib/hanami/model/configurator.rb', line 26

def _schema
  @_schema
end

#backendObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.7.0


10
11
12
# File 'lib/hanami/model/configurator.rb', line 10

def backend
  @backend
end

#directoryObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.7.0


18
19
20
# File 'lib/hanami/model/configurator.rb', line 18

def directory
  @directory
end

#urlObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.7.0


14
15
16
# File 'lib/hanami/model/configurator.rb', line 14

def url
  @url
end

Class Method Details

.build(&block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.7.0


38
39
40
# File 'lib/hanami/model/configurator.rb', line 38

def self.build(&block)
  new.tap { |config| config.instance_eval(&block) }
end

Instance Method Details

#migrations_logger(stream = $stdout) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0


44
45
46
47
# File 'lib/hanami/model/configurator.rb', line 44

def migrations_logger(stream = $stdout)
  require 'hanami/model/migrator/logger'
  @migrations_logger ||= Hanami::Model::Migrator::Logger.new(stream)
end