class ParserModule::KubeConfigParser

Public Class Methods

parse(template_path, variable_path) click to toggle source
# File lib/utils/kube_config_parser.rb, line 7
def self.parse(template_path, variable_path)
  variable_hash = YAML.load(File.open(variable_path).read)
  config_template = File.open(template_path).read

  pm = Paragraph.new(config_template, variable_hash)
  return pm.parse
end