Module: RailsServerMonitor

Defined in:
lib/rails_server_monitor.rb,
lib/rails_server_monitor/engine.rb,
lib/rails_server_monitor/version.rb,
app/models/rails_server_monitor/server.rb,
lib/rails_server_monitor/configuration.rb,
lib/rails_server_monitor/compile_locally.rb,
app/services/rails_server_monitor/cleanup.rb,
app/models/rails_server_monitor/server_group.rb,
app/services/rails_server_monitor/server_setup.rb,
app/models/rails_server_monitor/server_snapshot.rb,
app/services/rails_server_monitor/take_snapshot.rb,
app/models/rails_server_monitor/application_record.rb,
app/services/rails_server_monitor/chart_for_server.rb,
app/helpers/rails_server_monitor/application_helper.rb,
app/components/rails_server_monitor/server_table_row.rb,
app/controllers/rails_server_monitor/home_controller.rb,
app/middlewares/rails_server_monitor/rack_middleware.rb,
app/components/rails_server_monitor/leftbar_component.rb,
lib/generators/rails_server_monitor/install_generator.rb,
app/controllers/rails_server_monitor/servers_controller.rb,
app/middlewares/rails_server_monitor/sidekiq_middleware.rb,
app/controllers/rails_server_monitor/snapshots_controller.rb,
app/views/layouts/rails_server_monitor/application_record.rb,
app/controllers/rails_server_monitor/application_controller.rb,
app/components/rails_server_monitor/warnings/warning_component.rb,
app/components/rails_server_monitor/warnings/low_memory_component.rb,
app/components/rails_server_monitor/warnings/high_cpu_usage_component.rb,
app/components/rails_server_monitor/warnings/low_disk_space_component.rb

Defined Under Namespace

Modules: ApplicationHelper, Generators, Warnings Classes: ApplicationController, ApplicationRecord, ChartForServer, Cleanup, CompileLocally, Configuration, Engine, HomeController, LeftbarComponent, RackMiddleware, Server, ServerGroup, ServerSetup, ServerSnapshot, ServerTableRow, ServersController, SidekiqMiddleware, SnapshotsController, TakeSnapshot

Constant Summary collapse

ROOT_PATH =
Pathname.new(File.join(__dir__, ".."))
VERSION =
"0.2.1"

Class Method Summary collapse

Class Method Details

.config {|@configuration| ... } ⇒ Object

Yields:

  • (@configuration)


26
27
28
29
30
31
32
33
# File 'lib/rails_server_monitor.rb', line 26

def config
  unless block_given?
    return @configuration ||= Configuration.new
  end

  @configuration = Configuration.new
  yield @configuration
end

.webpackerObject



19
20
21
22
23
24
# 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