Class: YDoc::YamlBuilder
- Inherits:
-
Object
- Object
- YDoc::YamlBuilder
- Defined in:
- lib/appcom-ydoc-ruby/yaml/yaml_builder.rb
Instance Method Summary collapse
Instance Method Details
#create(output, config = {}) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/appcom-ydoc-ruby/yaml/yaml_builder.rb', line 9 def create output, config = {} sanatize_config! config today = DateTime.now.strftime('%Y%m%d') FileUtils.mkdir_p output ruyml = Ruyml::Data.new config ruyml.render_file(File.join(File.dirname(__FILE__), 'templates/empty.erb'), File.join(output, "meeting_#{today}.yaml")) end |