Class: Specinfra::Command::Ubuntu::Base::Port

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

Direct Known Subclasses

V18::Port

Class Method Summary collapse

Class Method Details

.create(os_info = nil) ⇒ Object



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

def create(os_info=nil)
  if (os_info || os)[:release].to_i < 18
    self
  else
    Specinfra::Command::Ubuntu::V18::Port
  end
end