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.
34 35 36 |
# File 'lib/hanami/model/configurator.rb', line 34 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.
30 31 32 |
# File 'lib/hanami/model/configurator.rb', line 30 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.
22 23 24 |
# File 'lib/hanami/model/configurator.rb', line 22 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.
26 27 28 |
# File 'lib/hanami/model/configurator.rb', line 26 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.
10 11 12 |
# File 'lib/hanami/model/configurator.rb', line 10 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.
18 19 20 |
# File 'lib/hanami/model/configurator.rb', line 18 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.
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.
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.
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 |