Class: Porkadot::Configs::Addons

Inherits:
Object
  • Object
show all
Includes:
Porkadot::ConfigUtils
Defined in:
lib/porkadot/configs/addons.rb

Instance Method Summary collapse

Methods included from Porkadot::ConfigUtils

#asset_path, #config, #logger, #method_missing, #raw, #respond_to_missing?, #secrets_path

Constructor Details

#initialize(config) ⇒ Addons

Returns a new instance of Addons.



6
7
8
9
# File 'lib/porkadot/configs/addons.rb', line 6

def initialize config
  @config = config
  @raw = config.raw.addons
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Porkadot::ConfigUtils

Instance Method Details

#target_crd_dir_pathObject



19
20
21
# File 'lib/porkadot/configs/addons.rb', line 19

def target_crd_dir_path
  File.join(self.config.assets_dir, 'kubernetes', 'manifests', 'crds')
end

#target_pathObject



11
12
13
# File 'lib/porkadot/configs/addons.rb', line 11

def target_path
  File.join(self.config.assets_dir, 'kubernetes', 'manifests', 'addons')
end

#target_secrets_pathObject



15
16
17
# File 'lib/porkadot/configs/addons.rb', line 15

def target_secrets_path
  File.join(self.config.secrets_root_dir, 'kubernetes', 'manifests', 'addons')
end