Meta Configuration

 This works a bit differently from 3.4.1.
 Defaults are currently not supported but remain in the method interfaces.
Methods
add_bool_config add_config add_path_config bool_config? config? config_names new path_config? remove_config set_config_default value_config?
Public Class methods
new(config)
# File lib/setup/config.rb, line 375
      def initialize(config) #, installer)
        @config    = config
        #@installer = installer
      end
Public Instance methods
add_bool_config(name, default, desc)
# File lib/setup/config.rb, line 423
      def add_bool_config(name, default, desc)
        @config.descriptions << [name.to_sym, :bool, desc]
        #@config.add BoolItem.new(name, 'yes/no', default ? 'yes' : 'no', desc)
      end
add_config(name, default, desc)
# File lib/setup/config.rb, line 417
      def add_config(name, default, desc)
        @config.descriptions << [name.to_sym, nil, desc]
        #@config.add item
      end
add_path_config(name, default, desc)
# File lib/setup/config.rb, line 429
      def add_path_config(name, default, desc)
        @config.descriptions << [name.to_sym, :path, desc]
        #@config.add PathItem.new(name, 'path', default, desc)
      end
bool_config?(name)
# File lib/setup/config.rb, line 393
      def bool_config?(name)
        @config.descriptions.find do |sym, type, desc|
          sym.to_s == name.to_s && type == :bool
        end
        #@config.lookup(name).config_type == 'bool'
      end
config?(name)
# File lib/setup/config.rb, line 386
      def config?(name)
        @config.descriptions.find do |sym, type, desc|
          sym.to_s == name.to_s
        end
      end
config_names()
# File lib/setup/config.rb, line 381
      def config_names
        @config.descriptions.collect{ |n, t, d| n.to_s }
      end
path_config?(name)
# File lib/setup/config.rb, line 401
      def path_config?(name)
        @config.descriptions.find do |sym, type, desc|
          sym.to_s == name.to_s && type == :path
        end
        #@config.lookup(name).config_type == 'path'
      end
remove_config(name)
# File lib/setup/config.rb, line 440
      def remove_config(name)
        item = @config.descriptions.find do |sym, type, desc|
          sym.to_s == name.to_s
        end
        index = @config.descriptions.index(item)
        @config.descriptions.delete(index)
        #@config.remove(name)
      end
set_config_default(name, default)
# File lib/setup/config.rb, line 435
      def set_config_default(name, default)
        @config[name] = default
      end
value_config?(name)
# File lib/setup/config.rb, line 409
      def value_config?(name)
        @config.descriptions.find do |sym, type, desc|
          sym.to_s == name.to_s && type != :prog
        end
        #@config.lookup(name).config_type != 'exec'
      end