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.41 lib/tasks/push.rb
dev-2.1.40 lib/tasks/push.rb
dev-2.1.39 lib/tasks/push.rb
dev-2.1.38 lib/tasks/push.rb
dev-2.1.37 lib/tasks/push.rb
dev-2.1.36 lib/tasks/push.rb
dev-2.1.35 lib/tasks/push.rb