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.155 lib/push.rb
dev_tasks-0.0.154 lib/push.rb
dev_tasks-0.0.153 lib/push.rb
dev_tasks-0.0.152 lib/push.rb
dev_tasks-0.0.151 lib/push.rb
dev_tasks-0.0.150 lib/push.rb
dev_tasks-0.0.149 lib/push.rb
dev_tasks-0.0.148 lib/push.rb
dev_tasks-0.0.147 lib/push.rb
dev_tasks-0.0.146 lib/push.rb
dev_tasks-0.0.145 lib/push.rb
dev_tasks-0.0.144 lib/push.rb
dev_tasks-0.0.143 lib/push.rb
dev_tasks-0.0.142 lib/push.rb
dev_tasks-0.0.141 lib/push.rb
dev_tasks-0.0.140 lib/push.rb
dev_tasks-0.0.139 lib/push.rb
dev_tasks-0.0.138 lib/push.rb
dev_tasks-0.0.137 lib/push.rb
dev_tasks-0.0.136 lib/push.rb