Sha256: 195476713ec922487637fccdd2efc12f4c6bad5af2a609349a00e927f357b95c
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 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 `svn status #{f}`.include?('?') } 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dev_commands-0.0.21 | lib/add.rb |