lib/dev_tasks.rb in dev_tasks-1.0.16 vs lib/dev_tasks.rb in dev_tasks-1.0.17
- old
+ new
@@ -134,11 +134,11 @@
eval('task :build=>[:setup]') if Rake::Task.task_defined?(:setup) && Rake::Task.task_defined?(:build)
eval('task :test=>[:build]') if Rake::Task.task_defined?(:build) && Rake::Task.task_defined?(:test)
end
def setup_svn_export(uri,dir)
- DEV_TASKS[:commands][:setup] << "svn export #{uri} #{dir}" if(!File.exists?(dir))
+ DEV_TASKS[:commands][:setup] << "svn export #{uri} #{dir}" if(!File.exists?(dir))
end
def setup_copy(src,dest)
if(File.exists?(src))
FileUtils.mkdir_p(File.dirname(dest)) if(!File.exists?(File.dirname(dest)))
@@ -150,10 +150,10 @@
src.each{|s|setup_copy(s,dest)}
end
end
end
- def svn_export(dep_dir,uri)
+ def self.svn_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