Class: GitHook::Rspec
- Inherits:
-
Hook
- Object
- Hook
- GitHook::Rspec
- Defined in:
- lib/git_hook-rspec.rb,
lib/git_hook-rspec/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Instance Method Summary collapse
Instance Method Details
#binstabs ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/git_hook-rspec.rb', line 15 def binstabs if .binstabs === true 'bin' else .binstabs end end |
#invoke ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/git_hook-rspec.rb', line 6 def invoke rspec = 'rspec' rspec = "#{binstabs}/rspec" if .binstabs? rspec = "bundle exec #{rspec}" unless .bundler === false `#{rspec} #{.cli || ''}` return $? === 0 end |