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