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.135 lib/push.rb
dev_tasks-0.0.134 lib/push.rb
dev_tasks-0.0.133 lib/push.rb
dev_tasks-0.0.132 lib/push.rb
dev_tasks-0.0.131 lib/push.rb
dev_tasks-0.0.130 lib/push.rb
dev_tasks-0.0.129 lib/push.rb
dev_tasks-0.0.128 lib/push.rb
dev_tasks-0.0.127 lib/push.rb
dev_tasks-0.0.126 lib/push.rb
dev_tasks-0.0.125 lib/push.rb
dev_tasks-0.0.124 lib/push.rb
dev_tasks-0.0.123 lib/push.rb
dev_tasks-0.0.122 lib/push.rb
dev_tasks-0.0.121 lib/push.rb
dev_tasks-0.0.120 lib/push.rb
dev_tasks-0.0.119 lib/push.rb
dev_tasks-0.0.118 lib/push.rb
dev_tasks-0.0.117 lib/push.rb
dev_tasks-0.0.116 lib/push.rb