dev 2.0.77 → 2.0.78
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.
- checksums.yaml +4 -4
- data/lib/dev_commands.rb +0 -2
- data/lib/dev_environment.rb +25 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7ddfd4e86014593096e5e51568939a64524dedc
|
4
|
+
data.tar.gz: fbfe7adbf072033527ba0a2f7718d9b68a106355
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51674713fce045f224570c25ce16e82cea910b559e6c151d865aaa4a54bff938a6d4bb6570419f69b490a9825cb133b39fff2e6d6d7f97f734bcfa9537bd2cb7
|
7
|
+
data.tar.gz: a73fc7d8c9dd9238aa99fa3ff741c626d0fce51b1a50e2b3e7c0cc903ec04633735f8424e3ac0e0e1f8f09f00ad7948a9d1c5e261b92c4920502d987db54fcec
|
data/lib/dev_commands.rb
CHANGED
data/lib/dev_environment.rb
CHANGED
@@ -47,4 +47,29 @@ class File
|
|
47
47
|
}
|
48
48
|
}
|
49
49
|
end
|
50
|
+
|
51
|
+
def self.publish destination, source_dir, source_glob='**/*'
|
52
|
+
|
53
|
+
output = "\n"
|
54
|
+
if(File.exists?(destination))
|
55
|
+
#raise "Svn.publish: destination #{destination} already exists"
|
56
|
+
puts "File.publish: destination #{destination} already exists"
|
57
|
+
else
|
58
|
+
# directory
|
59
|
+
FileUtils.mkdir_p destination if !File.exists? destination
|
60
|
+
|
61
|
+
files=nil
|
62
|
+
Dir.chdir(source_dir) do
|
63
|
+
files=FileList.new(source_glob).to_a
|
64
|
+
end
|
65
|
+
output = output + "\nfiles: #{files}.to_s"
|
66
|
+
|
67
|
+
Dir.chdir(source_dir) do
|
68
|
+
files.each{|f|
|
69
|
+
FileUtils.cp(f,"#{destination}/#{f}")
|
70
|
+
}
|
71
|
+
end
|
72
|
+
output
|
73
|
+
end
|
74
|
+
end
|
50
75
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.78
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.
|
62
|
+
rubygems_version: 2.2.3
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: dev
|