Sha256: 9636289ccaec28dbdc7cc5f7b59c91c2be3951120299fbcad5cc1f305edbafc7

Contents?: true

Size: 595 Bytes

Versions: 6

Compression:

Stored size: 595 Bytes

Contents

require_relative('./environment.rb')

class Verify < Array

  def initialize
    update
  end

  def update
    if(defined?(DEV_TASKS))
	  if(Environment.scm=='svn')
	    latestRev=Environment.svn_latest_revision
	    uri=DEV_TASKS[:scm_origin]+"@"+latestRev
		dep_dir="#{Environment.dev_root}/dep/#{DEV_TASKS[:relative_directory]}@#{latestRev}@"
		if(!File.exists?(dep_dir))
		  add "svn export #{uri} #{dep_dir}"
		  add "<%Environment.rake('#{dep_dir}','default',true)%>"
		end
	  end
	end
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dev_tasks-0.0.121 lib/verify.rb
dev_tasks-0.0.120 lib/verify.rb
dev_tasks-0.0.119 lib/verify.rb
dev_tasks-0.0.118 lib/verify.rb
dev_tasks-0.0.117 lib/verify.rb
dev_tasks-0.0.116 lib/verify.rb