Class: Debci::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/debci/config.rb

Overview

This class contains provides a Ruby interface to read debci configuration values.

Available configuration items:

  • data_basedir: the root directory used by debci to store test run data

There is a globally accessible instance of this class accessible from the config method of the Debci module.

>> Debci.config.data_basedir
=> "/path/to/debci/data"

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Object) artifacts_url_base

Returns the value of attribute artifacts_url_base

Returns:

  • (Object)

    the current value of artifacts_url_base



16
17
18
# File 'lib/debci/config.rb', line 16

def artifacts_url_base
  @artifacts_url_base
end

- (Object) config_dir

Returns the value of attribute config_dir

Returns:

  • (Object)

    the current value of config_dir



16
17
18
# File 'lib/debci/config.rb', line 16

def config_dir
  @config_dir
end

- (Object) data_basedir

Returns the value of attribute data_basedir

Returns:

  • (Object)

    the current value of data_basedir



16
17
18
# File 'lib/debci/config.rb', line 16

def data_basedir
  @data_basedir
end

- (Object) distro_name

Returns the value of attribute distro_name

Returns:

  • (Object)

    the current value of distro_name



16
17
18
# File 'lib/debci/config.rb', line 16

def distro_name
  @distro_name
end

- (Object) html_dir

Returns the value of attribute html_dir

Returns:

  • (Object)

    the current value of html_dir



16
17
18
# File 'lib/debci/config.rb', line 16

def html_dir
  @html_dir
end

- (Object) packages_dir

Returns the value of attribute packages_dir

Returns:

  • (Object)

    the current value of packages_dir



16
17
18
# File 'lib/debci/config.rb', line 16

def packages_dir
  @packages_dir
end

- (Object) sendmail_from

Returns the value of attribute sendmail_from

Returns:

  • (Object)

    the current value of sendmail_from



16
17
18
# File 'lib/debci/config.rb', line 16

def sendmail_from
  @sendmail_from
end

- (Object) sendmail_to

Returns the value of attribute sendmail_to

Returns:

  • (Object)

    the current value of sendmail_to



16
17
18
# File 'lib/debci/config.rb', line 16

def sendmail_to
  @sendmail_to
end

- (Object) url_base

Returns the value of attribute url_base

Returns:

  • (Object)

    the current value of url_base



16
17
18
# File 'lib/debci/config.rb', line 16

def url_base
  @url_base
end