Class: Porkadot::Configs::Addons
- Inherits:
-
Object
- Object
- Porkadot::Configs::Addons
- Includes:
- Porkadot::ConfigUtils
- Defined in:
- lib/porkadot/configs/addons.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Addons
constructor
A new instance of Addons.
- #target_crd_dir_path ⇒ Object
- #target_path ⇒ Object
- #target_secrets_path ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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 |