Class: Broadside::Configuration::BaseConfig
- Inherits:
-
ConfigStruct
- Object
- ConfigStruct
- Broadside::Configuration::BaseConfig
- Defined in:
- lib/broadside/configuration/base.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
Returns the value of attribute application.
-
#docker_image ⇒ Object
Returns the value of attribute docker_image.
-
#git_repo ⇒ Object
Returns the value of attribute git_repo.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#loglevel ⇒ Object
Returns the value of attribute loglevel.
-
#posthook ⇒ Object
Returns the value of attribute posthook.
-
#prehook ⇒ Object
Returns the value of attribute prehook.
Instance Method Summary collapse
-
#initialize ⇒ BaseConfig
constructor
A new instance of BaseConfig.
Methods inherited from ConfigStruct
#method_missing, #to_h, #verify
Constructor Details
#initialize ⇒ BaseConfig
Returns a new instance of BaseConfig.
8 9 10 11 12 13 14 15 16 |
# File 'lib/broadside/configuration/base.rb', line 8 def initialize @application = nil @docker_image = nil @logger = Logger.new(STDOUT) @logger.level = Logger::DEBUG @logger.datetime_format = '%Y-%m-%d_%H:%M:%S' @prehook = nil @posthook = nil end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Broadside::Configuration::ConfigStruct
Instance Attribute Details
#application ⇒ Object
Returns the value of attribute application.
6 7 8 |
# File 'lib/broadside/configuration/base.rb', line 6 def application @application end |
#docker_image ⇒ Object
Returns the value of attribute docker_image.
6 7 8 |
# File 'lib/broadside/configuration/base.rb', line 6 def docker_image @docker_image end |
#git_repo ⇒ Object
Returns the value of attribute git_repo.
6 7 8 |
# File 'lib/broadside/configuration/base.rb', line 6 def git_repo @git_repo end |
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/broadside/configuration/base.rb', line 6 def logger @logger end |
#loglevel ⇒ Object
Returns the value of attribute loglevel.
6 7 8 |
# File 'lib/broadside/configuration/base.rb', line 6 def loglevel @loglevel end |
#posthook ⇒ Object
Returns the value of attribute posthook.
6 7 8 |
# File 'lib/broadside/configuration/base.rb', line 6 def posthook @posthook end |
#prehook ⇒ Object
Returns the value of attribute prehook.
6 7 8 |
# File 'lib/broadside/configuration/base.rb', line 6 def prehook @prehook end |