Class: KubernetesDeploy::TaskConfig
- Inherits:
-
Object
- Object
- KubernetesDeploy::TaskConfig
- Defined in:
- lib/kubernetes-deploy/task_config.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
Instance Method Summary collapse
-
#initialize(context, namespace, logger = nil) ⇒ TaskConfig
constructor
A new instance of TaskConfig.
- #logger ⇒ Object
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
#context ⇒ Object (readonly)
Returns the value of attribute context.
4 5 6 |
# File 'lib/kubernetes-deploy/task_config.rb', line 4 def context @context end |
#namespace ⇒ Object (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
#logger ⇒ Object
12 13 14 |
# File 'lib/kubernetes-deploy/task_config.rb', line 12 def logger @logger ||= KubernetesDeploy::FormattedLogger.build(@namespace, @context) end |