Sha256: 0464577dd9b6171d9073b50b63f42d93ecf1dd39c5acaffaf44609cb5d537b62

Contents?: true

Size: 248 Bytes

Versions: 14

Compression:

Stored size: 248 Bytes

Contents

class Add < Array

  def update
    if(Dir.exists?(".git"))
	  if(`git status`.include?('untracked files present'))
	    self.add 'git add -A -v'
	  end
	end
  end

  def add command
    self << command if(!include?(command))
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dev_tasks-0.0.155 lib/add.rb
dev_tasks-0.0.154 lib/add.rb
dev_tasks-0.0.153 lib/add.rb
dev_tasks-0.0.152 lib/add.rb
dev_tasks-0.0.151 lib/add.rb
dev_tasks-0.0.150 lib/add.rb
dev_tasks-0.0.149 lib/add.rb
dev_tasks-0.0.148 lib/add.rb
dev_tasks-0.0.147 lib/add.rb
dev_tasks-0.0.146 lib/add.rb
dev_tasks-0.0.145 lib/add.rb
dev_tasks-0.0.144 lib/add.rb
dev_tasks-0.0.143 lib/add.rb
dev_tasks-0.0.142 lib/add.rb