Sha256: 5f385220a8f117f3b80e5b4b74994f8efd119043b0522acdf6f38b95dbab682e

Contents?: true

Size: 325 Bytes

Versions: 73

Compression:

Stored size: 325 Bytes

Contents

puts __FILE__ if defined?(DEBUG)

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

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

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
dev-2.0.268 lib/tasks/push.rb
dev-2.0.267 lib/tasks/push.rb
dev-2.0.266 lib/tasks/push.rb
dev-2.0.265 lib/tasks/push.rb
dev-2.0.264 lib/tasks/push.rb
dev-2.0.263 lib/tasks/push.rb
dev-2.0.262 lib/tasks/push.rb
dev-2.0.261 lib/tasks/push.rb
dev-2.0.260 lib/tasks/push.rb
dev-2.0.259 lib/tasks/push.rb
dev-2.0.258 lib/tasks/push.rb
dev-2.0.257 lib/tasks/push.rb
dev-2.0.256 lib/tasks/push.rb
dev-2.0.255 lib/tasks/push.rb
dev-2.0.254 lib/tasks/push.rb
dev-2.0.253 lib/tasks/push.rb
dev-2.0.252 lib/tasks/push.rb
dev-2.0.251 lib/tasks/push.rb
dev-2.0.250 lib/tasks/push.rb
dev-2.0.249 lib/tasks/push.rb