Sha256: 6f79f050a223c714ff8ad37471c28102d0768975db2ac55a411359b59fd31871

Contents?: true

Size: 270 Bytes

Versions: 31

Compression:

Stored size: 270 Bytes

Contents

require_relative('./environment.rb')

class Pull < Array

  def initialize
    update
  end

  def update
    if(Environment.scm=='git')
	  self.add "<%`git pull 2>&1`%>"
	end
  end

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
dev_tasks-0.0.77 lib/pull.rb
dev_tasks-0.0.76 lib/pull.rb
dev_tasks-0.0.75 lib/pull.rb
dev_tasks-0.0.74 lib/pull.rb
dev_tasks-0.0.73 lib/pull.rb
dev_tasks-0.0.72 lib/pull.rb
dev_tasks-0.0.71 lib/pull.rb
dev_tasks-0.0.70 lib/pull.rb
dev_tasks-0.0.69 lib/pull.rb
dev_tasks-0.0.68 lib/pull.rb
dev_tasks-0.0.67 lib/pull.rb