Class: GitDeploy::Generator
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- GitDeploy::Generator
- Includes:
- Thor::Actions
- Defined in:
- lib/git_deploy/generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
6 7 8 |
# File 'lib/git_deploy/generator.rb', line 6 def self.source_root File.('../templates', __FILE__) end |
Instance Method Details
#copy_main_hook ⇒ Object
10 11 12 |
# File 'lib/git_deploy/generator.rb', line 10 def copy_main_hook copy_hook 'after_push.sh', 'deploy/after_push' end |
#copy_restart_callbacks ⇒ Object
18 19 20 |
# File 'lib/git_deploy/generator.rb', line 18 def copy_restart_callbacks copy_hook 'before_restart.rb', 'deploy/before_restart' end |
#copy_restart_hook ⇒ Object
14 15 16 |
# File 'lib/git_deploy/generator.rb', line 14 def copy_restart_hook copy_hook 'restart.sh', 'deploy/restart' end |