class Opsicle::Monitor::Panels::Help

Public Class Methods

new(height, width, top, left) click to toggle source
Calls superclass method Opsicle::Monitor::Panel::new
# File lib/opsicle/monitor/panels/help.rb, line 6
def initialize(height, width, top, left)
  super(height, width, top, left, structure(height), :divider_r => " ")
end

Public Instance Methods

structure(height) click to toggle source
# File lib/opsicle/monitor/panels/help.rb, line 10
def structure(height)
  # [
  #   [relative_column_width, data_left, data_right]
  # ]
  s = [
    [
      [1, "'h' : Show this help screen", nil],
    ],
    [
      [1, "'d' : Show deployment list on this OpsWorks stack", nil],
    ],
    [
      [1, "'i' : Show instance list on this OpsWorks stack", nil],
    ],
    [
      [1, "'b' : Open OpsWorks screen for this stack in your browser", nil],
    ],
    [
      [1, "'q' : Quit", nil],
    ]
  ]
end