Sha256: 376914aa1c618734928dc7e7ba65cf2711178e4221fe4de26aa563cb261454c6

Contents?: true

Size: 438 Bytes

Versions: 13

Compression:

Stored size: 438 Bytes

Contents

require_relative('./environment.rb')

class Upgrade < Array

  def initialize
    if(Environment.scm=='git' && Environment.branch=='develop')
	  Dir.glob('dep/**/*.dll').each {|f|
	    src=Environment.dev_root + "/" + f
		if(File.exist?(src) && File.mtime(src) > File.mtime(f))
		  self.add "<%FileUtils.cp('#{src}','#{f}')%>"
		end
	  }
	end
  end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dev_tasks-0.0.44 lib/upgrade.rb
dev_tasks-0.0.43 lib/upgrade.rb
dev_tasks-0.0.42 lib/upgrade.rb
dev_tasks-0.0.40 lib/upgrade.rb
dev_tasks-0.0.39 lib/upgrade.rb
dev_tasks-0.0.38 lib/upgrade.rb
dev_tasks-0.0.37 lib/upgrade.rb
dev_tasks-0.0.36 lib/upgrade.rb
dev_tasks-0.0.35 lib/upgrade.rb
dev_tasks-0.0.34 lib/upgrade.rb
dev_tasks-0.0.25 lib/upgrade.rb
dev_tasks-0.0.24 lib/upgrade.rb
dev_tasks-0.0.23 lib/upgrade.rb