Sha256: 92349eb9c889e499155886c0aa8d27b3d9fa8d7cb7d6e660162380627408a96c

Contents?: true

Size: 388 Bytes

Versions: 27

Compression:

Stored size: 388 Bytes

Contents

desc 'performs a git push'
task :push do Tasks.execute_task :push;end

class Push < Array
	def update
		if(!defined?(NO_PUSH))
		  if(File.exists?('.git') && `git config --list`.include?('user.name='))
		    if(`git branch`.include?('* master') || `git branch`.include?('* develop'))
				add_passive 'git push'
				add_passive 'git push --tags'
			end
		  end
		end
	end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
dev-2.1.61 lib/tasks/push.rb
dev-2.1.60 lib/tasks/push.rb
dev-2.1.59 lib/tasks/push.rb
dev-2.1.58 lib/tasks/push.rb
dev-2.1.57 lib/tasks/push.rb
dev-2.1.56 lib/tasks/push.rb
dev-2.1.55 lib/tasks/push.rb
dev-2.1.54 lib/tasks/push.rb
dev-2.1.53 lib/tasks/push.rb
dev-2.1.52 lib/tasks/push.rb
dev-2.1.51 lib/tasks/push.rb
dev-2.1.50 lib/tasks/push.rb
dev-2.1.49 lib/tasks/push.rb
dev-2.1.48 lib/tasks/push.rb
dev-2.1.47 lib/tasks/push.rb
dev-2.1.46 lib/tasks/push.rb
dev-2.1.45 lib/tasks/push.rb
dev-2.1.44 lib/tasks/push.rb
dev-2.1.43 lib/tasks/push.rb
dev-2.1.42 lib/tasks/push.rb