Sha256: ce40cea0fdf3b8320a8aaac410f3b03ff25129a85bd5a26dc35b5cb7d787a4f3

Contents?: true

Size: 272 Bytes

Versions: 18

Compression:

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

18 entries across 18 versions & 1 rubygems

Version Path
dev_commands-0.0.56 lib/push.rb
dev_commands-0.0.55 lib/push.rb
dev_commands-0.0.49 lib/push.rb
dev_commands-0.0.48 lib/push.rb
dev_commands-0.0.47 lib/push.rb
dev_commands-0.0.46 lib/push.rb
dev_commands-0.0.45 lib/push.rb
dev_commands-0.0.44 lib/push.rb
dev_commands-0.0.43 lib/push.rb
dev_commands-0.0.42 lib/push.rb
dev_commands-0.0.41 lib/push.rb
dev_commands-0.0.40 lib/push.rb
dev_commands-0.0.39 lib/push.rb
dev_commands-0.0.38 lib/push.rb
dev_commands-0.0.37 lib/push.rb
dev_commands-0.0.36 lib/push.rb
dev_commands-0.0.35 lib/push.rb
dev_commands-0.0.34 lib/push.rb