class Fleek::Server
Attributes
helpers[R]
Public Class Methods
config()
click to toggle source
# File lib/fleek/server.rb, line 19 def self.config Fleek::Server::Configuration end
new(env)
click to toggle source
Calls superclass method
# File lib/fleek/server.rb, line 9 def initialize(env) super() @env = env @helpers = Fleek::Helpers.new(env) @listener = Listen.to(*@env.paths, latency: 0.1, wait_for_delay: 0.1) do |modified, added, removed| rebuild end @listener.start end
Public Instance Methods
config()
click to toggle source
# File lib/fleek/server.rb, line 23 def config self.class.config end
rebuild()
click to toggle source
# File lib/fleek/server.rb, line 27 def rebuild connections.map do |connection| connection.send_async(:check_assets) end end