Class: KubernetesDeploy::TaskConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/kubernetes-deploy/task_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context, namespace, logger = nil) ⇒ TaskConfig

Returns a new instance of TaskConfig.



6
7
8
9
10
# File 'lib/kubernetes-deploy/task_config.rb', line 6

def initialize(context, namespace, logger = nil)
  @context = context
  @namespace = namespace
  @logger = logger
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



4
5
6
# File 'lib/kubernetes-deploy/task_config.rb', line 4

def context
  @context
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



4
5
6
# File 'lib/kubernetes-deploy/task_config.rb', line 4

def namespace
  @namespace
end

Instance Method Details

#loggerObject



12
13
14
# File 'lib/kubernetes-deploy/task_config.rb', line 12

def logger
  @logger ||= KubernetesDeploy::FormattedLogger.build(@namespace, @context)
end