Class: Setup

Inherits:
CommandArray show all
Defined in:
lib/setup.rb

Instance Method Summary collapse

Methods inherited from CommandArray

#add, #execute

Instance Method Details

#updateObject



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/setup.rb', line 4

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