Sha256: aa065504e3f66458338042531afb0c0fe1ac957b01ef58ab8b8e488c4e028788

Contents?: true

Size: 956 Bytes

Versions: 4

Compression:

Stored size: 956 Bytes

Contents

# ./.tmuxinator.yml

<% 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:
        - sleep 2 && vim
        - neptuno ps
        - # host shell

  <% @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.0.10 lib/neptuno/templates/tmuxinator.yml
neptuno-1.0.9 lib/neptuno/templates/tmuxinator.yml
neptuno-1.0.8 lib/neptuno/templates/tmuxinator.yml
neptuno-1.0.7 lib/neptuno/templates/tmuxinator.yml