Class ConfigTable::MetaConfigEnvironment
In: setup.rb
Parent: Object

Methods

Public Class methods

[Source]

# File setup.rb, line 474
    def initialize(config, installer)
      @config = config
      @installer = installer
    end

Public Instance methods

[Source]

# File setup.rb, line 503
    def add_bool_config(name, default, desc)
      @config.add BoolItem.new(name, 'yes/no', default ? 'yes' : 'no', desc)
    end

[Source]

# File setup.rb, line 499
    def add_config(item)
      @config.add item
    end

[Source]

# File setup.rb, line 507
    def add_path_config(name, default, desc)
      @config.add PathItem.new(name, 'path', default, desc)
    end

[Source]

# File setup.rb, line 487
    def bool_config?(name)
      @config.lookup(name).config_type == 'bool'
    end

[Source]

# File setup.rb, line 483
    def config?(name)
      @config.key?(name)
    end

[Source]

# File setup.rb, line 479
    def config_names
      @config.names
    end

For only multipackage

[Source]

# File setup.rb, line 526
    def declare_packages(list)
      raise '[setup.rb fatal] multi-package metaconfig API declare_packages() called for single-package; contact application package vendor' unless @installer
      @installer.packages = list
    end

For only multipackage

[Source]

# File setup.rb, line 520
    def packages
      raise '[setup.rb fatal] multi-package metaconfig API packages() called for single-package; contact application package vendor' unless @installer
      @installer.packages
    end

[Source]

# File setup.rb, line 491
    def path_config?(name)
      @config.lookup(name).config_type == 'path'
    end

[Source]

# File setup.rb, line 515
    def remove_config(name)
      @config.remove(name)
    end

[Source]

# File setup.rb, line 511
    def set_config_default(name, default)
      @config.lookup(name).default = default
    end

[Source]

# File setup.rb, line 495
    def value_config?(name)
      @config.lookup(name).config_type != 'exec'
    end

[Validate]