dev 2.0.97 → 2.0.98
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dev_environment.rb +2 -2
- metadata +1 -1
data/lib/dev_environment.rb
CHANGED
@@ -52,7 +52,7 @@ class File
|
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
55
|
-
def self.publish destination, source_dir, source_glob='**/*'
|
55
|
+
def self.publish destination, source_dir, source_glob='**/*', overwrite_existing=false
|
56
56
|
|
57
57
|
output = "\n"
|
58
58
|
# directory
|
@@ -69,7 +69,7 @@ class File
|
|
69
69
|
file="#{destination}/#{f}"
|
70
70
|
dirname=File.dirname(file)
|
71
71
|
FileUtils.mkdir_p dirname if !File.exists? dirname
|
72
|
-
FileUtils.cp(f,file) if !File.exists? file
|
72
|
+
FileUtils.cp(f,file) if !File.exists? file || overwrite_existing
|
73
73
|
}
|
74
74
|
end
|
75
75
|
output
|