Sha256: 0ab3c4efbed2cac2e30f1dd1a242533bfecc1483b86e8b8a92ab38225a6dec76

Contents?: true

Size: 594 Bytes

Versions: 29

Compression:

Stored size: 594 Bytes

Contents

require_relative('./commandarray.rb')
class Setup < CommandArray

  def update
    if(defined?(DEV_TASKS))
      DEV_TASKS[:svn_exports].each{|k,v|
	    if(!File.exists?("#{Environment.dev_root}/dep/#{k}"))
	      FileUtils.mkdir_p(File.dirname("#{Environment.dev_root}/dep/#{k}")) if !File.exists?("#{Environment.dev_root}/dep/#{k}")
		  dest="#{Environment.dev_root}/dep/#{k}"
	      add "svn export #{v} #{Environment.dev_root}/dep/#{k}" if !dest.include?("@")
		  add "svn export #{v} #{Environment.dev_root}/dep/#{k}@" if dest.include?("@")
        end
	  }
	end
  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
dev_tasks-1.0.35 lib/setup.rb
dev_tasks-1.0.34 lib/setup.rb
dev_tasks-1.0.33 lib/setup.rb
dev_tasks-1.0.31 lib/setup.rb
dev_tasks-1.0.30 lib/setup.rb
dev_tasks-1.0.29 lib/setup.rb
dev_tasks-1.0.28 lib/setup.rb
dev_tasks-1.0.27 lib/setup.rb
dev_tasks-1.0.26 lib/setup.rb
dev_tasks-1.0.25 lib/setup.rb
dev_tasks-1.0.24 lib/setup.rb
dev_tasks-1.0.23 lib/setup.rb
dev_tasks-1.0.22 lib/setup.rb
dev_tasks-1.0.21 lib/setup.rb
dev_tasks-1.0.20 lib/setup.rb
dev_tasks-1.0.19 lib/setup.rb
dev_tasks-1.0.18 lib/setup.rb
dev_tasks-1.0.17 lib/setup.rb
dev_tasks-1.0.16 lib/setup.rb
dev_tasks-1.0.15 lib/setup.rb