Sha256: e5775ba7ec4a1fc4c16371386c4338d44104af1c9d44f7983cd69e7353be9af0

Contents?: true

Size: 391 Bytes

Versions: 66

Compression:

Stored size: 391 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

66 entries across 66 versions & 1 rubygems

Version Path
dev-2.1.153 lib/tasks/push.rb
dev-2.1.152 lib/tasks/push.rb
dev-2.1.151 lib/tasks/push.rb
dev-2.1.150 lib/tasks/push.rb
dev-2.1.149 lib/tasks/push.rb
dev-2.1.148 lib/tasks/push.rb
dev-2.1.147 lib/tasks/push.rb
dev-2.1.146 lib/tasks/push.rb
dev-2.1.145 lib/tasks/push.rb
dev-2.1.144 lib/tasks/push.rb
dev-2.1.143 lib/tasks/push.rb
dev-2.1.142 lib/tasks/push.rb
dev-2.1.141 lib/tasks/push.rb
dev-2.1.140 lib/tasks/push.rb
dev-2.1.139 lib/tasks/push.rb
dev-2.1.137 lib/tasks/push.rb
dev-2.1.136 lib/tasks/push.rb
dev-2.1.135 lib/tasks/push.rb
dev-2.1.134 lib/tasks/push.rb
dev-2.1.133 lib/tasks/push.rb