Class: Middleman::PreviewServer::DefaultInformation

Inherits:
BasicInformation show all
Defined in:
lib/middleman-core/preview_server/information.rb

Overview

This only is used if no other parser is available

The "default" behaviour is to fail because of "Checks::DenyAnyAny"

Instance Attribute Summary

Attributes inherited from BasicInformation

#bind_address, #listeners, #port, #reason, #server_name, #site_addresses, #valid

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BasicInformation

#local_network_interfaces, #show_me_network_interfaces, #valid?, #validate_me

Constructor Details

#initialize(*args) ⇒ DefaultInformation

Returns a new instance of DefaultInformation.



80
81
82
83
84
85
# File 'lib/middleman-core/preview_server/information.rb', line 80

def initialize(*args)
  super

  # Make this fail
  @checks << Checks::DenyAnyAny.new
end

Class Method Details

.matches?Boolean

Always true

Returns:

  • (Boolean)


90
91
92
# File 'lib/middleman-core/preview_server/information.rb', line 90

def self.matches?(*)
  true
end

Instance Method Details

#resolve_meObject



87
# File 'lib/middleman-core/preview_server/information.rb', line 87

def resolve_me(*); end