Method: Webbynode::Git#commit
- Defined in:
- lib/webbynode/git.rb
#commit(comments) ⇒ Object
96 97 98 99 100 101 |
# File 'lib/webbynode/git.rb', line 96 def commit(comments) comments.gsub! /"/, '\"' exec("git commit -m \"#{comments}\"") do |output| output =~ /#{comments}/ or output =~ /nothing to commit/ end end |