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.117 lib/commands/pull.rb
dev-2.0.116 lib/commands/pull.rb
dev-2.0.115 lib/commands/pull.rb
dev-2.0.114 lib/commands/pull.rb
dev-2.0.113 lib/commands/pull.rb
dev-2.0.112 lib/commands/pull.rb
dev-2.0.111 lib/commands/pull.rb
dev-2.0.110 lib/commands/pull.rb
dev-2.0.109 lib/commands/pull.rb
dev-2.0.108 lib/commands/pull.rb
dev-2.0.107 lib/commands/pull.rb
dev-2.0.106 lib/commands/pull.rb
dev-2.0.105 lib/commands/pull.rb
dev-2.0.104 lib/commands/pull.rb
dev-2.0.103 lib/commands/pull.rb
dev-2.0.102 lib/commands/pull.rb
dev-2.0.101 lib/commands/pull.rb
dev-2.0.100 lib/commands/pull.rb