MARC_set_wrangler.rb
def return_specific_config(configsection, configlevel)
  choices = []
  configsection.each_key { |k| choices << k.to_sym }
  choose do |menu|
    menu.index = :number
    menu.index_suffix = ') '
    menu.prompt = "Which of the above #{configlevel}s do I use? "
    menu.choices(*choices) do |chosen|
      return configsection[chosen.to_s]
    end
  end
end
# Find out what workflow and collection we're dealing with and set those configs
Find out what workflow and collection we're dealing with and set those configs
Find out what workflow and collection we ' re dealing with and set those configs
def return_specific_config(configsection, configlevel)
  choices = []
  configsection.each_key { |k| choices << k.to_sym }
  choose do |menu|
    menu.index = :number
    menu.index_suffix = ') '
    menu.prompt = "Which of the above #{configlevel}s do I use? "
    menu.choices(*choices) do |chosen|
      return configsection[chosen.to_s]
    end
  end
end
def return_specific_config ( configsection , configlevel ) choices = [ ] configsection . each_key { | k | choices << k . to_sym } choose do | menu | menu . index = :number menu . index_suffix = ') ' menu . prompt = "Which of the above #{configlevel}s do I use? " menu . choices ( * choices ) do | chosen | return configsection [ chosen . to_s ] end end end
Find out what workflow and collection we're dealing with and set those configs
Find out what workflow and collection we ' re dealing with and set those configs
configsection
configlevel