Class: DeploymentTask::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/deployment_task/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_reporterObject

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_adapterObject

Returns the value of attribute lock_adapter.



7
8
9
# File 'lib/deployment_task/configuration.rb', line 7

def lock_adapter
  @lock_adapter
end

#loggerObject

Returns the value of attribute logger.



7
8
9
# File 'lib/deployment_task/configuration.rb', line 7

def logger
  @logger
end

#record_base_classObject

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_directoryObject

Returns the value of attribute task_directory.



7
8
9
# File 'lib/deployment_task/configuration.rb', line 7

def task_directory
  @task_directory
end