# /home/tyrel/.config/tmuxinator/tidelift.yml

name: tidelift
root: /code/tidelift

# Optional tmux socket
# socket_name: foo

# Note that the pre and post options have been deprecated and will be replaced by
# project hooks.

# Project hooks

# Runs on project start, always
# on_project_start: command

# Run on project start, the first time
# on_project_first_start: command

# Run on project start, after the first time
# on_project_restart: command

# Run on project exit ( detaching from tmux session )
# on_project_exit: command

# Run on project stop
# on_project_stop: command

# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
pre_window: rbenv shell 2.6.6

# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf

# Change the command to call tmux.  This can be used by derivatives/wrappers like byobu.
# tmux_command: byobu

# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
# startup_window: editor

# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
# startup_pane: 2

# Controls whether the tmux session should be attached to automatically. Defaults to true.
# attach: false

windows:
  - frontend:
      layout: tiled
      panes:
        - dev:
          - cd frontend
          - yarn install
          - yarn run dev
        - git:
          - cd frontend
  - dependencyci:
      layout: tiled
      panes:
        - puma:
          - cd dependencyci
          - bundle exec puma -w 1
        - sidekiq:
          - cd dependencyci
          - bundle exec sidekiq -C config/sidekiq.yml
        - git:
          - cd dependencyci
  - servers:
      layout: tiled
      panes:
        - auth-service:
          - cd auth-service
          - rbenv shell 2.6.3
          - ruby app.rb
        - octo-goggles:
          - cd octo-goggles
          - rbenv shell 2.6.3
          - ruby app.rb
        - subscriber-api:
          - cd auth-service
          - rbenv shell 2.6.3
          - bundle exec puma config.ru
        - artifactory-plugin:
          - cd artifactory-plugin
          - docker-compose up
