Sha256: c1af72859c947740092c55daacd070b5538106adffbdd57c230fc24a4dbeb5df

Contents?: true

Size: 1.39 KB

Versions: 6

Compression:

Stored size: 1.39 KB

Contents

---
sidebar_position: 1
---

# Understanding the `Supfile`

The `Supfile` is what **Wassup** uses to generate the dashboard.

The dashboard is made up of **panes**. These **panes** are configured by the `Supfile`.

```ruby title="Supfile"
add_pane do |pane|
  pane.height = 0.5
  pane.width = 0.4
  pane.top = 0
  pane.left = 0

  pane.title = "Current Time"

  pane.highlight = false

  pane.interval = 1
  pane.content do |content|
    date = `date`
    content.add_row(date)
  end
end
```

## Properties

### Positioning

| Property | Type | Description |
| --- | --- | --- |
| height | Float | Height of the pane (value between 0 and 1) |
| width | Float | Width of the pane (value between 0 and 1) |
| top | Float | Top positioning of the pane (value between 0 and 1) |
| left | Float | Left positioning of the pane (value between 0 and 1) |
| title | String | Title to display in the top border of the pane |

### Content

| Property | Type | Description |
| --- | --- | --- |
| interval | Integer (or Float) | Interval (in seconds) on how often to refresh pane with the `content` block |
| show_refresh | Boolean | Whether or not to show when a content refresh is happening |
| highlight | Boolean | Whether or not to allow highlighting and selection of rows |
| content | Block | A Ruby block for fetching and adding content to the pane |
| selection | Block | A Ruby block for fetching and adding content to the pane |

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wassup-0.4.1 docs/docs/Supfile-basics/understanding-the-supfile.md
wassup-0.4.0 docs/docs/Supfile-basics/understanding-the-supfile.md
wassup-0.3.2 docs/docs/Supfile-basics/understanding-the-supfile.md
wassup-0.3.1 docs/docs/Supfile-basics/understanding-the-supfile.md
wassup-0.3.0 docs/docs/Supfile-basics/understanding-the-supfile.md
wassup-0.2.1 docs/docs/Supfile-basics/understanding-the-supfile.md