Class: HotReloadProxy::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/hot_reload_proxy/config.rb

Constant Summary collapse

DEFAULT_HOST =
'localhost'
DEFAULT_PORT =
'3100'

Class Method Summary collapse

Class Method Details

.hostObject



17
18
19
# File 'lib/hot_reload_proxy/config.rb', line 17

def self.host
  @host
end

.host=(host) ⇒ Object



9
10
11
# File 'lib/hot_reload_proxy/config.rb', line 9

def self.host=(host)
  @host = host
end

.portObject



21
22
23
# File 'lib/hot_reload_proxy/config.rb', line 21

def self.port
  @port
end

.port=(port) ⇒ Object



13
14
15
# File 'lib/hot_reload_proxy/config.rb', line 13

def self.port=(port)
  @port = port.to_s
end

.reset!Object



25
26
27
28
# File 'lib/hot_reload_proxy/config.rb', line 25

def self.reset!
  @host = DEFAULT_HOST
  @port = DEFAULT_PORT
end