Class: Broadside::Configuration::BaseConfig

Inherits:
ConfigStruct show all
Defined in:
lib/broadside/configuration/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ConfigStruct

#method_missing, #to_h, #verify

Constructor Details

#initializeBaseConfig

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

#applicationObject

Returns the value of attribute application.



6
7
8
# File 'lib/broadside/configuration/base.rb', line 6

def application
  @application
end

#docker_imageObject

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_repoObject

Returns the value of attribute git_repo.



6
7
8
# File 'lib/broadside/configuration/base.rb', line 6

def git_repo
  @git_repo
end

#loggerObject

Returns the value of attribute logger.



6
7
8
# File 'lib/broadside/configuration/base.rb', line 6

def logger
  @logger
end

#loglevelObject

Returns the value of attribute loglevel.



6
7
8
# File 'lib/broadside/configuration/base.rb', line 6

def loglevel
  @loglevel
end

#posthookObject

Returns the value of attribute posthook.



6
7
8
# File 'lib/broadside/configuration/base.rb', line 6

def posthook
  @posthook
end

#prehookObject

Returns the value of attribute prehook.



6
7
8
# File 'lib/broadside/configuration/base.rb', line 6

def prehook
  @prehook
end