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.
Files changed (2) hide show
  1. data/lib/dev_environment.rb +2 -2
  2. metadata +1 -1
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.97
4
+ version: 2.0.98
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: