Sha256: f383e9e4d80d2774232f7284e79fbd2c9384f8fe7c803e348eecf974b6e190aa

Contents?: true

Size: 270 Bytes

Versions: 89

Compression:

Stored size: 270 Bytes

Contents

require_relative('./environment.rb')

class Push < Array

  def initialize
    update
  end

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

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

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
dev_tasks-0.0.74 lib/push.rb
dev_tasks-0.0.73 lib/push.rb
dev_tasks-0.0.72 lib/push.rb
dev_tasks-0.0.71 lib/push.rb
dev_tasks-0.0.70 lib/push.rb
dev_tasks-0.0.69 lib/push.rb
dev_tasks-0.0.68 lib/push.rb
dev_tasks-0.0.67 lib/push.rb
dev_tasks-0.0.66 lib/push.rb