Method: Runbook::Helpers::TmuxHelper#_initialize_panes

Defined in:
lib/runbook/helpers/tmux_helper.rb

#_initialize_panes(panes_to_init, layout_panes) ⇒ Object



141
142
143
144
145
146
147
# File 'lib/runbook/helpers/tmux_helper.rb', line 141

def _initialize_panes(panes_to_init, layout_panes)
  panes_to_init.each do |pane|
    target = layout_panes[pane[:name]]
    _set_directory(pane[:directory], target) if pane[:directory]
    send_keys(pane[:command], target) if pane[:command]
  end
end