Class: Push

Inherits:
CommandArray show all
Defined in:
lib/push.rb

Instance Method Summary collapse

Methods inherited from CommandArray

#add, #execute

Instance Method Details

#updateObject



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