Sha256: cd415ed109ac0260e440f29a8af1c4b9b2256a1fc651d3c6245b8fcc518a3a08

Contents?: true

Size: 265 Bytes

Versions: 6

Compression:

Stored size: 265 Bytes

Contents

require_relative('./environment.rb')

class Pull < Array

  def initialize
    update
  end

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dev_tasks-0.0.66 lib/pull.rb
dev_tasks-0.0.65 lib/pull.rb
dev_tasks-0.0.64 lib/pull.rb
dev_tasks-0.0.63 lib/pull.rb
dev_tasks-0.0.62 lib/pull.rb
dev_tasks-0.0.61 lib/pull.rb