module Makersinit
Constants
- GIT_HOOKS_PATH
- VERSION
Public Class Methods
initialize_pre_push_script()
click to toggle source
# File lib/makersinit.rb, line 6 def self.initialize_pre_push_script copy_script_to_hook remove_sample_hook end
Private Class Methods
copy_script_to_hook()
click to toggle source
# File lib/makersinit.rb, line 17 def self.copy_script_to_hook IO.copy_stream(script_path, target_path) end
remove_sample_hook()
click to toggle source
# File lib/makersinit.rb, line 21 def self.remove_sample_hook file = target_path + '.sample' File.delete(file) if File.exist? file end
script_path()
click to toggle source
# File lib/makersinit.rb, line 13 def self.script_path File.join(File.dirname(File.expand_path(__FILE__)), '../scripts/pre-push') end
target_path()
click to toggle source
# File lib/makersinit.rb, line 26 def self.target_path "#{GIT_HOOKS_PATH}/pre-push" end