Sha256: c4f70f7ace5676de0115e55eb34b9fa277a4f40c2caaed28ac7bc82cb99146c6
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
require 'rainbow' module Codeguard module PreCommit module_function def config_project_path Pathname.new 'config/pre_commit.yml' end def config_gem_path Codeguard.config_path.join('pre_commit.yml') end def setup `pre-commit install` puts Rainbow('pre-commit hooks were generated').green return if `which rvm`.empty? system('git config pre-commit.ruby "rvm `rvm current` do ruby"') puts Rainbow('pre-commit.ruby was added to git config').green end end # module PreCommit end # module Codeguard
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
codeguard-0.3.0 | lib/codeguard/pre_commit.rb |
codeguard-0.2.0 | lib/codeguard/pre_commit.rb |