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



36
37
38
# File 'lib/hanami/model/configurator.rb', line 36

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



32
33
34
# File 'lib/hanami/model/configurator.rb', line 32

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



24
25
26
# File 'lib/hanami/model/configurator.rb', line 24

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



28
29
30
# File 'lib/hanami/model/configurator.rb', line 28

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



12
13
14
# File 'lib/hanami/model/configurator.rb', line 12

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



20
21
22
# File 'lib/hanami/model/configurator.rb', line 20

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



16
17
18
# File 'lib/hanami/model/configurator.rb', line 16

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



40
41
42
# File 'lib/hanami/model/configurator.rb', line 40

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



46
47
48
49
# File 'lib/hanami/model/configurator.rb', line 46

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