Sha256: 3e18fa805e25d43e49baa1d254dd2c7a4fab87ba2d55cc406783e5e48cafea3f

Contents?: true

Size: 813 Bytes

Versions: 20

Compression:

Stored size: 813 Bytes

Contents

require_relative('./environment.rb')
require_relative('./console.rb')

class Verify < Array

  def initialize
    update
  end

  def update
    
    if(defined?(DEV_TASKS))
	  if(Environment.scm=='svn')
	    latestRev=Environment.svn_latest_revision
		Console.debug "Verify.update, svn_latest_revision=#{latestRev}"
	    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}','build',true)%>"
		  #add "<%Environment.rake('#{dep_dir}','test',true)%>" 
		  add "<%DEV_TASKS[:commands][:publish].update%>"
		end
	  end
	end
  end

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
dev_tasks-0.0.154 lib/verify.rb
dev_tasks-0.0.153 lib/verify.rb
dev_tasks-0.0.152 lib/verify.rb
dev_tasks-0.0.151 lib/verify.rb
dev_tasks-0.0.150 lib/verify.rb
dev_tasks-0.0.149 lib/verify.rb
dev_tasks-0.0.148 lib/verify.rb
dev_tasks-0.0.147 lib/verify.rb
dev_tasks-0.0.146 lib/verify.rb
dev_tasks-0.0.145 lib/verify.rb
dev_tasks-0.0.144 lib/verify.rb
dev_tasks-0.0.143 lib/verify.rb
dev_tasks-0.0.142 lib/verify.rb
dev_tasks-0.0.141 lib/verify.rb
dev_tasks-0.0.140 lib/verify.rb
dev_tasks-0.0.139 lib/verify.rb
dev_tasks-0.0.138 lib/verify.rb
dev_tasks-0.0.137 lib/verify.rb
dev_tasks-0.0.136 lib/verify.rb
dev_tasks-0.0.135 lib/verify.rb