Sha256: af67056ca49ea84d34961edb56b8ea7d0aba6c99cdd3d73fbd90637b55d8e0a0

Contents?: true

Size: 346 Bytes

Versions: 3

Compression:

Stored size: 346 Bytes

Contents

class Add < Array

  def self.discover_commands commands
    if(Dir.exists?(".git"))
	  if(`git status`.include?('untracked files present'))
	    commands["add"] = Add.new if(!commands.has_key?("add"))
	    commands["add"].add 'git add -A -v'
	  end
	end
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dev_tasks-0.0.6 lib/add.rb
dev_tasks-0.0.5 lib/add.rb
dev_tasks-0.0.4 lib/add.rb