dev_tasks 0.0.123 → 0.0.124
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/publish.rb +6 -3
- data/lib/spec.json +1 -1
- metadata +1 -1
data/lib/publish.rb
CHANGED
@@ -21,11 +21,14 @@ class Publish < Array
|
|
21
21
|
if(DEV_TASKS).has_key?(:publish_path)
|
22
22
|
if(DEV_TASKS[:publish_path].include?('svn://'))
|
23
23
|
latestRev=Environment.svn_latest_revision
|
24
|
-
svn_publish_uri="#{DEV_TASKS[:publish_path]}/#{DEV_TASKS[:
|
25
|
-
local_dir="#{Environment.dev_root}/tmp/#{DEV_TASKS[:
|
24
|
+
svn_publish_uri="#{DEV_TASKS[:publish_path]}/#{DEV_TASKS[:relative_directory]}-#{latestRev}"
|
25
|
+
local_dir="#{Environment.dev_root}/tmp/#{DEV_TASKS[:relative_directory]}@#{latestRev}"
|
26
26
|
FileUtils.mkdir_p(File.dirname(local_dir)) if(!File.exists?(File.dirname(local_dir)))
|
27
27
|
dep_dir="#{Environment.dev_root}/dep/#{DEV_TASKS[:relative_directory]}@#{latestRev}@"
|
28
|
-
|
28
|
+
puts "Publish.update, `svn info #{svn_publish_uri}`"
|
29
|
+
if(`svn info #{svn_publish_uri}`.include?('URL:'))
|
30
|
+
puts "#{svn_publish_uri} already exists."
|
31
|
+
else
|
29
32
|
add "svn mkdir #{svn_publish_uri} --parents"
|
30
33
|
add "svn checkout #{svn_publish_uri} #{local_dir}@"
|
31
34
|
DEV_TASKS[:artifacts].each{|a|
|
data/lib/spec.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"dev_tasks","version":"0.0.
|
1
|
+
{"name":"dev_tasks","version":"0.0.124"}
|