Class: OodCore::Job::Adapters::Kubernetes::Resources::ConfigMapFile
- Inherits:
-
Object
- Object
- OodCore::Job::Adapters::Kubernetes::Resources::ConfigMapFile
- Defined in:
- lib/ood_core/job/adapters/kubernetes/resources.rb
Overview
Utility class for mounting files in kubernetes configmap objects.
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#init_mount_path ⇒ Object
Returns the value of attribute init_mount_path.
-
#init_sub_path ⇒ Object
Returns the value of attribute init_sub_path.
-
#mount_path ⇒ Object
Returns the value of attribute mount_path.
-
#sub_path ⇒ Object
Returns the value of attribute sub_path.
Instance Method Summary collapse
-
#initialize(data) ⇒ ConfigMapFile
constructor
A new instance of ConfigMapFile.
Constructor Details
#initialize(data) ⇒ ConfigMapFile
Returns a new instance of ConfigMapFile.
27 28 29 30 31 32 33 34 |
# File 'lib/ood_core/job/adapters/kubernetes/resources.rb', line 27 def initialize(data) @filename = data[:filename] @data = data[:data] @mount_path = data[:mount_path] @sub_path = data[:sub_path] @init_mount_path = data[:init_mount_path] @init_sub_path = data[:init_sub_path] end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
25 26 27 |
# File 'lib/ood_core/job/adapters/kubernetes/resources.rb', line 25 def data @data end |
#filename ⇒ Object
Returns the value of attribute filename.
25 26 27 |
# File 'lib/ood_core/job/adapters/kubernetes/resources.rb', line 25 def filename @filename end |
#init_mount_path ⇒ Object
Returns the value of attribute init_mount_path.
25 26 27 |
# File 'lib/ood_core/job/adapters/kubernetes/resources.rb', line 25 def init_mount_path @init_mount_path end |
#init_sub_path ⇒ Object
Returns the value of attribute init_sub_path.
25 26 27 |
# File 'lib/ood_core/job/adapters/kubernetes/resources.rb', line 25 def init_sub_path @init_sub_path end |
#mount_path ⇒ Object
Returns the value of attribute mount_path.
25 26 27 |
# File 'lib/ood_core/job/adapters/kubernetes/resources.rb', line 25 def mount_path @mount_path end |
#sub_path ⇒ Object
Returns the value of attribute sub_path.
25 26 27 |
# File 'lib/ood_core/job/adapters/kubernetes/resources.rb', line 25 def sub_path @sub_path end |