dev_tasks 0.0.147 → 0.0.148
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/environment.rb +4 -2
- data/lib/publish.rb +1 -1
- data/lib/spec.json +1 -1
- metadata +1 -1
data/lib/environment.rb
CHANGED
@@ -19,8 +19,10 @@ class Environment < Hash
|
|
19
19
|
Console.debug("Environment.copy_files([#{files.to_s}],'#{dest}'')")
|
20
20
|
files.each{|f|
|
21
21
|
if(File.directory?(dest))
|
22
|
-
|
23
|
-
|
22
|
+
dest_file = "#{dest}/#{f}"
|
23
|
+
Console.debug "copying #{f} to #{dest_file}"
|
24
|
+
FileUtis.mkdir_p(File.dirname(dest_file)) if(!File.exists?(File.dirname(dest_file)))
|
25
|
+
FileUtils.cp(f,dest_file)
|
24
26
|
end
|
25
27
|
}
|
26
28
|
end
|
data/lib/publish.rb
CHANGED
@@ -36,7 +36,7 @@ class Publish < Array
|
|
36
36
|
add "<%Environment.copy_files(DEV_TASKS[:files][:artifact],'#{local_dir}')%>"
|
37
37
|
add "<%Environment.svn_add_all('#{local_dir}')%>"
|
38
38
|
add "svn commit #{local_dir}@ -m\"publish\""
|
39
|
-
|
39
|
+
add "<%FileUtils.rm_r('#{local_dir}')%>"
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
data/lib/spec.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"dev_tasks","version":"0.0.
|
1
|
+
{"name":"dev_tasks","version":"0.0.148"}
|