Sha256: 354b5d6c04cb6969c3bac63b0dfc3a7947bec1017156da78b1a7d59801f48055

Contents?: true

Size: 1.2 KB

Versions: 29

Compression:

Stored size: 1.2 KB

Contents

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

class Verify < CommandArray

  def update
    
    if(defined?(DEV_TASKS))
	  svn_publish_uri=""
	  if(DEV_TASKS).has_key?(:publish_path)
	    if(DEV_TASKS[:publish_path].include?('svn://') || DEV_TASKS[:publish_path].include?('file:///'))
		  latestRev=Environment.svn_latest_revision 
		  svn_publish_uri="#{DEV_TASKS[:publish_path]}/#{DEV_TASKS[:relative_directory]}-#{latestRev}"
		  svn_info=`svn info #{svn_publish_uri} 2>&1`
		  if(svn_info.include?('URL:'))
		    Console.debug "#{svn_publish_uri} already exists."
			return
		  end
		end
	  end

	  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}','test',true)%>"
		  add "<%DEV_TASKS[:commands][:publish].update%>"
		else
		  add "puts #{dep_dir} already exists."
		end
	  end
	end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
dev_tasks-1.0.21 lib/verify.rb
dev_tasks-1.0.20 lib/verify.rb
dev_tasks-1.0.19 lib/verify.rb
dev_tasks-1.0.18 lib/verify.rb
dev_tasks-1.0.17 lib/verify.rb
dev_tasks-1.0.16 lib/verify.rb
dev_tasks-1.0.15 lib/verify.rb
dev_tasks-1.0.14 lib/verify.rb
dev_tasks-1.0.13 lib/verify.rb
dev_tasks-1.0.12 lib/verify.rb
dev_tasks-1.0.11 lib/verify.rb
dev_tasks-1.0.10 lib/verify.rb
dev_tasks-1.0.9 lib/verify.rb
dev_tasks-1.0.8 lib/verify.rb
dev_tasks-1.0.7 lib/verify.rb
dev_tasks-1.0.6 lib/verify.rb
dev_tasks-1.0.5 lib/verify.rb
dev_tasks-1.0.4 lib/verify.rb
dev_tasks-1.0.3 lib/verify.rb
dev_tasks-1.0.2 lib/verify.rb