telegram-bot-rb/telegram-bot

View on GitHub
bin/install_git_hooks

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby
# frozen_string_literal: true

root = File.expand_path('..', __dir__)
hooks_dir = "#{root}/bin/git-hooks"

`ls -1 #{hooks_dir}`.each_line.map(&:strip).each do |file|
  `ln -sf #{hooks_dir}/#{file} #{root}/.git/hooks/#{file}`
end