dev 2.0.97 → 2.0.98
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/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
|