Sha256: 20a39afbb8581985cf7d88792232662b3b328e6d7637379a19c69e49b5482207

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 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 18.04]
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-pe_build-0.19.2 lib/pe_build/cap/detect_installer/ubuntu.rb
vagrant-pe_build-0.19.1 lib/pe_build/cap/detect_installer/ubuntu.rb
vagrant-pe_build-0.19.0 lib/pe_build/cap/detect_installer/ubuntu.rb