module ClioHelper

Helper methods for turning settings back into clio FIXME: This helper method requires knowledge of the Password class

Public Class Methods

clioize(settings) click to toggle source
# File lib/oro/helpers.rb, line 45
def self.clioize(settings)
  clio = []
  settings.plan.each { |part| Password.installed_part_switches.include?(part[0]) ? clio << "w#{part[1]}" : clio << "#{part[0][0].downcase}#{part[1]}" }
  settings.config.each { |part| clio << "--#{part[0].to_s.gsub('_', '-')}=#{part[1].to_s.gsub(/\n|\t|\r/, "\n" => '"\n"', "\t" => '"\t"', "\r" => '"\r"')}" }
  clio.join(' ')
end

Public Instance Methods

clio() click to toggle source
# File lib/oro/helpers.rb, line 52
def clio
  ClioHelper.clioize(settings)
end