Sha256: b23b50b35af43b3e368c286424cd731aff1cc11c91875b14afa8c3f1ced61e2b
Contents?: true
Size: 419 Bytes
Versions: 3
Compression:
Stored size: 419 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}" 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dev_commands-0.0.20 | lib/add.rb |
dev_commands-0.0.19 | lib/add.rb |
dev_commands-0.0.18 | lib/add.rb |