dev_svn 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|