Class: Pull
Overview
require_relative(‘internet.rb’)
Instance Method Summary collapse
Methods inherited from Array
Instance Method Details
#update ⇒ Object
813 814 815 816 817 818 819 |
# File 'lib/dev_commands.rb', line 813 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 |