Sha256: b4b424e0556b77b920662e36dcca1f92670f948c78592458c7bb9cd033b9b2bc

Contents?: true

Size: 295 Bytes

Versions: 23

Compression:

Stored size: 295 Bytes

Contents

require_relative('./push.rb')
require_relative('./environment.rb')

class Push < CommandArray
  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
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
dev_tasks-1.0.35 lib/push.rb
dev_tasks-1.0.34 lib/push.rb
dev_tasks-1.0.33 lib/push.rb
dev_tasks-1.0.31 lib/push.rb
dev_tasks-1.0.30 lib/push.rb
dev_tasks-1.0.29 lib/push.rb
dev_tasks-1.0.28 lib/push.rb
dev_tasks-1.0.27 lib/push.rb
dev_tasks-1.0.26 lib/push.rb
dev_tasks-1.0.25 lib/push.rb
dev_tasks-1.0.24 lib/push.rb
dev_tasks-1.0.23 lib/push.rb
dev_tasks-1.0.22 lib/push.rb
dev_tasks-1.0.21 lib/push.rb
dev_tasks-1.0.20 lib/push.rb
dev_tasks-1.0.19 lib/push.rb
dev_tasks-1.0.18 lib/push.rb
dev_tasks-1.0.17 lib/push.rb
dev_tasks-1.0.16 lib/push.rb
dev_tasks-1.0.15 lib/push.rb