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