lib/svnexports.rb in dev_tasks-1.0.17 vs lib/svnexports.rb in dev_tasks-1.0.18
- old
+ new
@@ -1,3 +1,11 @@
+require_relative './environment.rb'
class SvnExports < Hash
+ def self.export(dep_dir,uri)
+ if(!File.exists?("#{Environment.dev_root}/dep/#{dep_dir}"))
+ dest="#{Environment.dev_root}/dep/#{dep_dir}"
+ Environment.execute "svn export #{v} #{Environment.dev_root}/dep/#{dep_dir}" if !dest.include?("@")
+ Environment.execute "svn export #{v} #{Environment.dev_root}/dep/#{dep_dir}@" if dest.include?("@")
+ end
+ end
end
\ No newline at end of file