class Lono::Importer::Converter
Public Class Methods
new(options={})
click to toggle source
source is a path
# File lib/lono/importer/converter.rb, line 6 def initialize(options={}) @options = options @source = options[:source] end
Public Instance Methods
run()
click to toggle source
# File lib/lono/importer/converter.rb, line 11 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