Class: Serverspec::Type::Port

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/port.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_s

Constructor Details

This class inherits a constructor from Serverspec::Type::Base

Instance Method Details

#listening?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/serverspec/type/port.rb', line 4

def listening?
  backend.check_listening(@name)
end