Method: SchemaDev::Gem#ensure_not_in_git
- Defined in:
- lib/schema_dev/gem.rb
#ensure_not_in_git ⇒ Object
62 63 64 65 66 |
# File 'lib/schema_dev/gem.rb', line 62 def ensure_not_in_git if system("git rev-parse >& /dev/null") die "Cannot create new gem inside existing git worktree; please cd elsewhere" end end |