Sha256: b1361395a1b55e26c7f1a664e1e6ab7b260ee5610a7e979e6f03ba754fcaeae5

Contents?: true

Size: 1.01 KB

Versions: 4

Compression:

Stored size: 1.01 KB

Contents

# This file defines what Tmux will do when Neptuno connects to your services. 
# You can add or remove Tmux windows and panes for each service here.

<% if  YAML.load_file('neptuno.yml')["procfile_manager"] == "tmux" %>
name: <%= @args[0] %>
root: .
attach: false
windows:
  <% File.read("procfiles/#{args[0]}/Procfile").each_line do |proc| %>
    <%= "- #{proc}" %>
  <% end %>
    - host: cd services/<%= args[0] %> && zsh

<% else %>

name: neptuno
root: .
on_project_exit: tmux kill-session -t neptuno

windows:
  - neptuno:
      panes:
        - neptuno ps

  <% @args.each do |service| %>
  - <%= service %>:
      root: .
      pre: cd ./services/<%= service %>

    <% if  YAML.load_file('neptuno.yml')["mode"] == "ide" %>
      layout: 3595,323x99,0,0[323x82,0,0,85,323x16,0,83{161x16,0,83,86,161x16,162,83,87}]
      panes:
        - sleep 2 && vim
        - server: 
            neptuno c <%= service %>
    <% else %>
      panes:
        - server: 
            neptuno c <%= service %>
    <% end %>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
neptuno-1.5.0 lib/neptuno/templates/.tmuxinator.yml
neptuno-1.4.10 lib/neptuno/templates/.tmuxinator.yml
neptuno-1.2.1 lib/neptuno/templates/.tmuxinator.yml
neptuno-1.2.0 lib/neptuno/templates/.tmuxinator.yml