Sha256: 7215ffa51cb5915de4c4e285500cf477ae08b8a14dcd4ab7c3da9a64a8d82bac

Contents?: true

Size: 280 Bytes

Versions: 20

Compression:

Stored size: 280 Bytes

Contents

require_relative('internet.rb')
class Push < Array
	def update
		if(File.exists?('.git') && `git config --list`.include?('user.name='))
			add 'git config --global push.default simple'
			self <<  'git push' if Git.branch != 'develop' && Internet.available?
		end
	end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
dev-2.0.46 lib/push.rb
dev-2.0.45 lib/push.rb
dev-2.0.44 lib/push.rb
dev-2.0.43 lib/push.rb
dev-2.0.42 lib/push.rb
dev_commands-0.0.58 lib/push.rb
dev_commands-0.0.57 lib/push.rb
dev_commands-0.0.54 lib/push.rb
dev_commands-0.0.53 lib/push.rb
dev_commands-0.0.52 lib/push.rb
dev_commands-0.0.51 lib/push.rb
dev_commands-0.0.50 lib/push.rb
dev_commands-0.0.33 lib/push.rb
dev_commands-0.0.32 lib/push.rb
dev_commands-0.0.31 lib/push.rb
dev_commands-0.0.30 lib/push.rb
dev_commands-0.0.29 lib/push.rb
dev_commands-0.0.28 lib/push.rb
dev_commands-0.0.27 lib/push.rb
dev_commands-0.0.26 lib/push.rb