Class: StackMaster::TemplateCompilers::Yaml

Inherits:
Object
  • Object
show all
Defined in:
lib/stack_master/template_compilers/yaml.rb

Class Method Summary collapse

Class Method Details

.compile(template_file_path) ⇒ Object



4
5
6
7
# File 'lib/stack_master/template_compilers/yaml.rb', line 4

def self.compile(template_file_path)
  template_body = File.read(template_file_path)
  JSON.dump(YAML.load(template_body))
end