Skip to content
Harsh-Srivastava edited this page Jul 29, 2014 · 1 revision

Current

As of 5.0+ Setup.rb simply allows for a file @.setup/metaconfig.rb@ that extends Setup::Config class. Look at the API documentation for that class and you can see all the ways in which you can extend or override it's behavior.

3.4.1 and below

  • @add_path_config(confname, default, description)@ defines a path config option CONFNAME. DEFAULT is the default value of this option. DESCRIPTION is the short description of this option which is used from '--help' global option.
  • @add_bool_config(confname, default, description)@ defines a bool config option CONFNAME. DEFAULT is the default value of this option. DESCRIPTION is the short description of this option which is used from '--help' global option.
  • @set_config_default(confname, val)@ set default value of config CONFNAME to VAL (String or bool). If CONFNAME is a bool config, VAL should be boolean. Else VAL should be a String.
  • @remove_config(confname)@ removes config entry CONFNAME from the installer completely. You must use this method at your own lisk. For example, 'remove_config("prefix")' causes fatal error.

Clone this wiki locally