Class: Hanami::Model::Configurator Private
- Inherits:
-
Object
- Object
- Hanami::Model::Configurator
- 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
Instance Attribute Summary collapse
- #_gateway ⇒ Object readonly private
- #_logger ⇒ Object readonly private
- #_migrations ⇒ Object readonly private
- #_schema ⇒ Object readonly private
- #backend ⇒ Object readonly private
- #directory ⇒ Object readonly private
- #url ⇒ Object readonly private
Class Method Summary collapse
- .build(&block) ⇒ Object private
Instance Method Summary collapse
Instance Attribute Details
#_gateway ⇒ Object (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.
36 37 38 |
# File 'lib/hanami/model/configurator.rb', line 36 def _gateway @_gateway end |
#_logger ⇒ Object (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.
32 33 34 |
# File 'lib/hanami/model/configurator.rb', line 32 def _logger @_logger end |
#_migrations ⇒ Object (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.
24 25 26 |
# File 'lib/hanami/model/configurator.rb', line 24 def _migrations @_migrations end |
#_schema ⇒ Object (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.
28 29 30 |
# File 'lib/hanami/model/configurator.rb', line 28 def _schema @_schema end |
#backend ⇒ Object (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.
12 13 14 |
# File 'lib/hanami/model/configurator.rb', line 12 def backend @backend end |
#directory ⇒ Object (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.
20 21 22 |
# File 'lib/hanami/model/configurator.rb', line 20 def directory @directory end |
#url ⇒ Object (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.
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.
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.
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 |