dev_svn 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/svn.rb +6 -0
- metadata +1 -1
data/lib/svn.rb
CHANGED
@@ -11,6 +11,12 @@ class Svn
|
|
11
11
|
"0"
|
12
12
|
end
|
13
13
|
|
14
|
+
def self.export url, destination
|
15
|
+
if(!File.exists?(destination))
|
16
|
+
`svn export #{url} #{destination}`
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
14
20
|
# publish a directory to a new subversion path
|
15
21
|
# source_dir is the directory with the files to be published
|
16
22
|
# destination is the new subversion path URL
|