Module: Tmuxinator::Hooks::Project
- Included in:
- Project
- Defined in:
- lib/tmuxinator/hooks/project.rb
Class Method Summary collapse
-
.hook_on_project_exit ⇒ Object
Commands specified in this hook run when you exit from a project ( aka detach from a tmux session ).
-
.hook_on_project_first_start ⇒ Object
Commands specified in this hook run when “tmuxinator start project” command is issued and there is no tmux session available named “project”.
-
.hook_on_project_restart ⇒ Object
Commands specified in this hook run when “tmuxinator start project” command is issued and there is no tmux session available named “project”.
-
.hook_on_project_start ⇒ Object
Commands specified in this hook run when “tmuxinator start project” command is issued.
-
.hook_on_project_stop ⇒ Object
Command specified in this hook run when “tmuxinator stop project” command is issued.
Class Method Details
.hook_on_project_exit ⇒ Object
Commands specified in this hook run when you exit from a project ( aka detach from a tmux session )
31 32 33 34 |
# File 'lib/tmuxinator/hooks/project.rb', line 31 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_start ⇒ Object
Commands specified in this hook run when “tmuxinator start project” command is issued and there is no tmux session available named “project”
17 18 19 20 |
# File 'lib/tmuxinator/hooks/project.rb', line 17 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_restart ⇒ Object
Commands specified in this hook run when “tmuxinator start project” command is issued and there is no tmux session available named “project”
24 25 26 27 |
# File 'lib/tmuxinator/hooks/project.rb', line 24 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_start ⇒ Object
Commands specified in this hook run when “tmuxinator start project” command is issued
10 11 12 13 |
# File 'lib/tmuxinator/hooks/project.rb', line 10 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_stop ⇒ Object
Command specified in this hook run when “tmuxinator stop project” command is issued
38 39 40 41 |
# File 'lib/tmuxinator/hooks/project.rb', line 38 def hook_on_project_stop # this method can only be used from inside Tmuxinator::Project Tmuxinator::Hooks.commands_from self, "on_project_stop" end |