Class: GitDeploy::Generator

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/git_deploy/generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



6
7
8
# File 'lib/git_deploy/generator.rb', line 6

def self.source_root
  File.expand_path('../templates', __FILE__)
end

Instance Method Details

#copy_main_hookObject



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_callbacksObject



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_hookObject



14
15
16
# File 'lib/git_deploy/generator.rb', line 14

def copy_restart_hook
  copy_hook 'restart.sh', 'deploy/restart'
end