Sha256: 63a28af166d007018e18063d984d668ca6b97b297272d3735b40a22773a24d60

Contents?: true

Size: 265 Bytes

Versions: 5

Compression:

Stored size: 265 Bytes

Contents

require_relative('./environment.rb')

class Push < Array

  def initialize
    update
  end

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

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