Class: DeploymentTask::Configuration
- Inherits:
-
Object
- Object
- DeploymentTask::Configuration
- Defined in:
- lib/deployment_task/configuration.rb
Instance Attribute Summary collapse
-
#error_reporter ⇒ Object
Returns the value of attribute error_reporter.
-
#lock_adapter ⇒ Object
Returns the value of attribute lock_adapter.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#record_base_class ⇒ Object
Returns the value of attribute record_base_class.
-
#task_directory ⇒ Object
Returns the value of attribute task_directory.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 |
# File 'lib/deployment_task/configuration.rb', line 10 def initialize @task_directory = "lib/deployment_task/tasks" @error_reporter = ->(error, context) {} @logger = default_logger @record_base_class = "ApplicationRecord" @lock_adapter = :database end |
Instance Attribute Details
#error_reporter ⇒ Object
Returns the value of attribute error_reporter.
7 8 9 |
# File 'lib/deployment_task/configuration.rb', line 7 def error_reporter @error_reporter end |
#lock_adapter ⇒ Object
Returns the value of attribute lock_adapter.
7 8 9 |
# File 'lib/deployment_task/configuration.rb', line 7 def lock_adapter @lock_adapter end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/deployment_task/configuration.rb', line 7 def logger @logger end |
#record_base_class ⇒ Object
Returns the value of attribute record_base_class.
7 8 9 |
# File 'lib/deployment_task/configuration.rb', line 7 def record_base_class @record_base_class end |
#task_directory ⇒ Object
Returns the value of attribute task_directory.
7 8 9 |
# File 'lib/deployment_task/configuration.rb', line 7 def task_directory @task_directory end |