class Orchparty::Kubernetes::DSLParser

Attributes

filename[R]

Public Class Methods

new(filename) click to toggle source
# File lib/orchparty/dsl_parser_kubernetes.rb, line 8
def initialize(filename)
  @filename = filename
end

Public Instance Methods

parse() click to toggle source
# File lib/orchparty/dsl_parser_kubernetes.rb, line 12
def parse
  file_content = File.read(filename)
  builder = RootBuilder.new
  builder.instance_eval(file_content, filename)
  builder._build
end