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.98 lib/pull.rb
dev_tasks-0.0.97 lib/pull.rb
dev_tasks-0.0.96 lib/pull.rb
dev_tasks-0.0.94 lib/pull.rb
dev_tasks-0.0.93 lib/pull.rb
dev_tasks-0.0.92 lib/pull.rb
dev_tasks-0.0.91 lib/pull.rb
dev_tasks-0.0.90 lib/pull.rb
dev_tasks-0.0.89 lib/pull.rb
dev_tasks-0.0.88 lib/pull.rb
dev_tasks-0.0.87 lib/pull.rb
dev_tasks-0.0.86 lib/pull.rb
dev_tasks-0.0.85 lib/pull.rb
dev_tasks-0.0.84 lib/pull.rb
dev_tasks-0.0.83 lib/pull.rb
dev_tasks-0.0.82 lib/pull.rb
dev_tasks-0.0.81 lib/pull.rb
dev_tasks-0.0.80 lib/pull.rb
dev_tasks-0.0.79 lib/pull.rb
dev_tasks-0.0.78 lib/pull.rb