dev 2.0.82 → 2.0.83

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dev_environment.rb +15 -20
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aae55339f7e52b6856e43c9a18584e69dbf86390
4
- data.tar.gz: 139395ef5294bddefec0dc7843fd2603923cafec
3
+ metadata.gz: fbfd7fab2e5827783e8be33b07190f743374e916
4
+ data.tar.gz: b1cc7722ffda474137895171364d1607276ec750
5
5
  SHA512:
6
- metadata.gz: f04badea13e987497466d06721f34c6c5fde30c2533970514bf96ead15a2948849c31e137e68bc275dc3c763b1936548dbf36f25cfe0eeeec3db15cf203c0071
7
- data.tar.gz: 10e5817155f4097f023ea3bc3b76e43ed1f59c3af70de3c0f60e977d865a6f3159c864dadfae27508d62188fe8b5e19187d75197fb7fe8206ebd9c499a9deda0
6
+ metadata.gz: 086a10c44739e0598d93732b33ba802323eee49be06e3db3755de9b1b0b754132de94be1d51e1b3e8ff6c0c2eed0a603a18e42da88124c3d318f0fefe98ecc1b
7
+ data.tar.gz: 97daa9f3ed9fd7d154ed6077f0d0e5159d8e671b31249de0d71ba378a1f818ec1037ff144d5282a0a1e3482e5f0f1072cd65dcdbf6842f2c04a2c42ef74396f4
@@ -53,28 +53,23 @@ class File
53
53
  def self.publish destination, source_dir, source_glob='**/*'
54
54
 
55
55
  output = "\n"
56
- if(File.exists?(destination))
57
- #raise "Svn.publish: destination #{destination} already exists"
58
- puts "File.publish: destination #{destination} already exists"
59
- else
60
- # directory
61
- FileUtils.mkdir_p destination if !File.exists? destination
56
+ # directory
57
+ FileUtils.mkdir_p destination if !File.exists? destination
62
58
 
63
- files=nil
64
- Dir.chdir(source_dir) do
65
- files=FileList.new(source_glob).to_a
66
- end
67
- output = output + "\nfiles: #{files}.to_s"
59
+ files=nil
60
+ Dir.chdir(source_dir) do
61
+ files=FileList.new(source_glob).to_a
62
+ end
63
+ output = output + "\nfiles: #{files}.to_s"
68
64
 
69
- Dir.chdir(source_dir) do
70
- files.each{|f|
71
- file="#{destination}/#{f}"
72
- dirname=File.dirname(file)
73
- FileUtils.mkdir_p dirname if !File.exists? dirname
74
- FileUtils.cp(f,file)
75
- }
76
- end
77
- output
65
+ Dir.chdir(source_dir) do
66
+ files.each{|f|
67
+ file="#{destination}/#{f}"
68
+ dirname=File.dirname(file)
69
+ FileUtils.mkdir_p dirname if !File.exists? dirname
70
+ FileUtils.cp(f,file) if !File.exists? file
71
+ }
78
72
  end
73
+ output
79
74
  end
80
75
  end
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.82
4
+ version: 2.0.83
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow