module RailsServerMonitor

Constants

ROOT_PATH
VERSION

Public Class Methods

config() { |configuration| ... } click to toggle source
# File lib/rails_server_monitor.rb, line 26
def config
  unless block_given?
    return @configuration ||= Configuration.new
  end

  @configuration = Configuration.new
  yield @configuration
end
webpacker() click to toggle source
# File lib/rails_server_monitor.rb, line 19
def webpacker
  @webpacker ||= Webpacker::Instance.new(
    root_path: RailsServerMonitor::Engine.root,
    config_path: RailsServerMonitor::Engine.root.join("config", "webpacker.yml")
  )
end