Module: DockDriver::Template::FreeBSD

Included in:
DockDriver::Template
Defined in:
lib/dock_driver/template/freebsd.rb

Overview

Adds network-related methods to the DockDriver::Template DSL.

Since I’m using a bit of metaprogramming, here’s a list of DSL methods that this module brings to the template:

loadavg_one

1 minute load average

loadavg_five

minute load average

loadavg_fifteen

15 minute load average

Example:

<%= loadavg_one %> => 1.61

Constant Summary collapse

LOADAVG_KEYS =

Map of column names for the load stats.

[
    :one,
    :five,
    :fifteen
]