Sha256: 204a231bf5d563259d37ae8793f248e748891d0ef340dfd42ac16c1c4a51e150

Contents?: true

Size: 785 Bytes

Versions: 5

Compression:

Stored size: 785 Bytes

Contents

module Opsicle
  module Monitor
    module Panels
      class Help < Monitor::Panel

        def initialize(height, width, top, left)
          super(height, width, top, left, structure(height), :divider_r => " ")
        end

        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, "'b' : Open OpsWorks screen for this stack in your browser", nil],
            ],
            [
              [1, "'q' : Quit", nil],
            ]
          ]
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opsicle-0.4.0 lib/opsicle/monitor/panels/help.rb
opsicle-0.3.1 lib/opsicle/monitor/panels/help.rb
opsicle-0.3.0 lib/opsicle/monitor/panels/help.rb
opsicle-0.2.1 lib/opsicle/monitor/panels/help.rb
opsicle-0.2.0 lib/opsicle/monitor/panels/help.rb