Method: GGSM::Hooks#cp_files

Defined in:
lib/ggsm/hook/hooks.rb

#cp_files(target_path) ⇒ Object



46
47
48
49
50
# File 'lib/ggsm/hook/hooks.rb', line 46

def cp_files(target_path)
  path = `gem which ggsm`.split('/ggsm.rb')[0]
  `cp #{path}/ggsm/hook/commit-msg #{target_path}/commit-msg`
  `cp #{path}/ggsm/hook/pre-commit  #{target_path}/pre-commit`
end