require 'lib/string_helper' module Devops module StackTemplatePresets class Base def id StringHelper.underscore_class(self.class) end def to_hash {id: id, template_preset_body: template_preset_body} end def template_preset_body file_name = File.join("lib/stack_template_presets/#{id}.json") File.read(file_name) end def build_template_from_preset(provider, options={}) # do smth end end end end