Sha256: b6f75684150d920c4d82bd01b3aace651a72db0d3b7f7f43d5fdfe6a43979ded

Contents?: true

Size: 276 Bytes

Versions: 38

Compression:

Stored size: 276 Bytes

Contents

#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

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
dev-2.0.139 lib/commands/pull.rb
dev-2.0.138 lib/commands/pull.rb
dev-2.0.137 lib/commands/pull.rb
dev-2.0.136 lib/commands/pull.rb
dev-2.0.135 lib/commands/pull.rb
dev-2.0.134 lib/commands/pull.rb
dev-2.0.133 lib/commands/pull.rb
dev-2.0.132 lib/commands/pull.rb
dev-2.0.131 lib/commands/pull.rb
dev-2.0.130 lib/commands/pull.rb
dev-2.0.129 lib/commands/pull.rb
dev-2.0.128 lib/commands/pull.rb
dev-2.0.127 lib/commands/pull.rb
dev-2.0.126 lib/commands/pull.rb
dev-2.0.124 lib/commands/pull.rb
dev-2.0.123 lib/commands/pull.rb
dev-2.0.122 lib/commands/pull.rb
dev-2.0.121 lib/commands/pull.rb
dev-2.0.119 lib/commands/pull.rb
dev-2.0.118 lib/commands/pull.rb