Module: Tmuxinator::Hooks::Project

Included in:
Project
Defined in:
lib/tmuxinator/hooks/project.rb

Class Method Summary collapse

Class Method Details

.hook_on_project_exitObject

Commands specified in this hook run when you exit from a project ( aka detach from a tmux session )



29
30
31
32
# File 'lib/tmuxinator/hooks/project.rb', line 29

def hook_on_project_exit
  # this method can only be used from inside Tmuxinator::Project
  Tmuxinator::Hooks.commands_from self, "on_project_exit"
end

.hook_on_project_first_startObject

Commands specified in this hook run when “tmuxinator start project” command is issued and there is no tmux session available named “project”



15
16
17
18
# File 'lib/tmuxinator/hooks/project.rb', line 15

def hook_on_project_first_start
  # this method can only be used from inside Tmuxinator::Project
  Tmuxinator::Hooks.commands_from self, "on_project_first_start"
end

.hook_on_project_restartObject

Commands specified in this hook run when “tmuxinator start project” command is issued and there is no tmux session available named “project”



22
23
24
25
# File 'lib/tmuxinator/hooks/project.rb', line 22

def hook_on_project_restart
  # this method can only be used from inside Tmuxinator::Project
  Tmuxinator::Hooks.commands_from self, "on_project_restart"
end

.hook_on_project_startObject

Commands specified in this hook run when “tmuxinator start project” command is issued



8
9
10
11
# File 'lib/tmuxinator/hooks/project.rb', line 8

def hook_on_project_start
  # this method can only be used from inside Tmuxinator::Project
  Tmuxinator::Hooks.commands_from self, "on_project_start"
end

.hook_on_project_stopObject

Command specified in this hook run when “tmuxinator stop project” command is issued



36
37
38
39
# File 'lib/tmuxinator/hooks/project.rb', line 36

def hook_on_project_stop
  # this method can only be used from inside Tmuxinator::Project
  Tmuxinator::Hooks.commands_from self, "on_project_stop"
end