Method: Debian::AptPkg::Configuration.architectures

Defined in:
ext/apt_pkg/configuration.cpp

.architecturesArray

Return the list of architectures supported on this system.

Debian::AptPkg::Configuration.architectures # => ["amd64"]

Returns:

  • (Array)
[View source]

11
12
13
14
15
16
17
18
19
20
21
# File 'ext/apt_pkg/configuration.cpp', line 11

static VALUE
architectures(VALUE self)
{
  VALUE result = rb_ary_new();
  std::vector < std::string > arches = APT::Configuration::getArchitectures();
  std::vector < std::string >::const_iterator I;
  for (I = arches.begin(); I != arches.end(); ++I) {
    rb_ary_push(result, rb_str_new2((*I).c_str()));
  }
  return result;
}