Class: Specinfra::Command::Debian::Base::Port

Inherits:
Linux::Base::Port
  • Object
show all
Defined in:
lib/specinfra/command/debian/base/port.rb

Direct Known Subclasses

V8::Port

Class Method Summary collapse

Class Method Details

.create(os_info = nil) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/specinfra/command/debian/base/port.rb', line 3

def create(os_info=nil)
  release = (os_info || os)[:release]
  if ["testing", "unstable"].include?(release) || release.to_i >= 8
    Specinfra::Command::Debian::V8::Port
  else
    self
  end
end