Module: ClioHelper
- Included in:
- Defaults, Preferences
- Defined in:
- lib/oro/helpers.rb
Overview
Helper methods for turning settings back into clio FIXME: This helper method requires knowledge of the Password class
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.clioize(settings) ⇒ Object
45 46 47 48 49 50 |
# 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 |
Instance Method Details
#clio ⇒ Object
52 53 54 |
# File 'lib/oro/helpers.rb', line 52 def clio ClioHelper.clioize(settings) end |