Sha256: ef50587722b24f6cade99dd9752278069cd3ea448ca9e6dee32e923b9e275f0c

Contents?: true

Size: 528 Bytes

Versions: 29

Compression:

Stored size: 528 Bytes

Contents

class Add < Array
	def update
		if(File.exists?('.gitignore'))
			add 'git add --all' 
		else
			if(defined?(SOURCE))
				if(File.exists?('.svn'))
					SOURCE.each{|f|

						add "svn add #{f} --parents" if Command.output("svn status #{f}").include?('?')
						add "svn add #{f} --parents" if Command.exit_code("svn status #{f}") != 0
					}
				end
				if(File.exists?('.git'))
					SOURCE.each{|f|
						add "git add #{f} -v" if `git status #{f}`.include?('untracked')
					}
				end
			end
		end
	end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
dev_commands-0.0.56 lib/add.rb
dev_commands-0.0.55 lib/add.rb
dev_commands-0.0.54 lib/add.rb
dev_commands-0.0.53 lib/add.rb
dev_commands-0.0.52 lib/add.rb
dev_commands-0.0.51 lib/add.rb
dev_commands-0.0.50 lib/add.rb
dev_commands-0.0.49 lib/add.rb
dev_commands-0.0.48 lib/add.rb
dev_commands-0.0.47 lib/add.rb
dev_commands-0.0.46 lib/add.rb
dev_commands-0.0.45 lib/add.rb
dev_commands-0.0.44 lib/add.rb
dev_commands-0.0.43 lib/add.rb
dev_commands-0.0.42 lib/add.rb
dev_commands-0.0.41 lib/add.rb
dev_commands-0.0.40 lib/add.rb
dev_commands-0.0.39 lib/add.rb
dev_commands-0.0.38 lib/add.rb
dev_commands-0.0.37 lib/add.rb