class Lono::Pro::Importer::Converter
Public Class Methods
new(source, options={})
click to toggle source
source is a path
# File lib/lono/pro/importer/converter.rb, line 6 def initialize(source, options={}) @source, @options = source, options end
Public Instance Methods
run()
click to toggle source
# File lib/lono/pro/importer/converter.rb, line 10 def run tmp_path = "/tmp/lono/import/template.yml" tmp_template_path = download_template(@source, tmp_path) template = IO.read(tmp_template_path) coder = Service::Coder.new(template, @options) coder.translate end