Method: Burp::Util.commit
- Defined in:
- app/lib/burp/util.rb
.commit(message = "auto commit", options = {}) ⇒ Object
10 11 12 13 14 |
# File 'app/lib/burp/util.rb', line 10 def self.commit( = "auto commit", = {}) [:path] ||= Burp.content_directory raise "missing git repo in burp cms directory" if `cd #{[:path]}; git st 2>&1`.match(/Not a git repository/) `cd #{[:path]}; git add .; git commit -a -m "Burp: #{}"` end |