class Magnetize::CLI
Public Instance Methods
to_magento()
click to toggle source
# File lib/magnetize/cli.rb, line 13 def to_magento unless options[:type] && options[:input] && options[:output] Magnetize::Convert.new.to_magento write: true else Magnetize::Convert.new.to_magento write: true, types: { options[:type] => { :magento => options[:output], :toml => options[:input] }} end end
to_toml()
click to toggle source
# File lib/magnetize/cli.rb, line 28 def to_toml Dir.chdir(options[:dir]) do unless options[:type] && options[:input] && options[:output] Magnetize::Convert.new.to_toml write: true else Magnetize::Convert.new.to_toml write: true, types: { options[:type] => { :magento => options[:input], :toml => options[:output] }} end end end