Sha256: 19a30e2d6e4de6ab1fce959656ab9862455f1d74ae638a1a55f5a80ca637ef57

Contents?: true

Size: 381 Bytes

Versions: 25

Compression:

Stored size: 381 Bytes

Contents

class PEBuild::Cap::DetectInstaller::Ubuntu < PEBuild::Cap::DetectInstaller::POSIX

  def name
    'ubuntu'
  end

  def release_file
    '/etc/issue'
  end

  def release_file_format
    %r[Ubuntu (\d{2}\.\d{2})]
  end

  def supported_releases
    %w[10.04 12.04 14.04 15.04 15.10 16.04]
  end

  def arch
    retval = super
    (retval == 'x86_64') ? 'amd64' : retval
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
vagrant-pe_build-0.15.5 lib/pe_build/cap/detect_installer/ubuntu.rb
vagrant-pe_build-0.15.4 lib/pe_build/cap/detect_installer/ubuntu.rb
vagrant-pe_build-0.15.3 lib/pe_build/cap/detect_installer/ubuntu.rb
vagrant-pe_build-0.15.1 lib/pe_build/cap/detect_installer/ubuntu.rb
vagrant-pe_build-0.15.0 lib/pe_build/cap/detect_installer/ubuntu.rb