Class: OodCore::Job::Adapters::Kubernetes::Resources::ConfigMapFile

Inherits:
Object
  • Object
show all
Defined in:
lib/ood_core/job/adapters/kubernetes/resources.rb

Overview

Utility class for mounting files in kubernetes configmap objects.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



25
26
27
# File 'lib/ood_core/job/adapters/kubernetes/resources.rb', line 25

def data
  @data
end

#filenameObject

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_pathObject

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_pathObject

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_pathObject

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_pathObject

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