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