Class: Push
- Inherits:
-
Object
- Object
- Push
- Defined in:
- lib/push.rb
Overview
< CommandArray
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/push.rb', line 5 def update if(Environment.scm=='git' && `git config --list`.include?('user.name=')) if(`git diff @{u}`.include?('diff')) self.add "<%`git push 2>&1`%>" end end end |