cpee-resources 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cpee-resources.gemspec +1 -1
- data/tools/cpee-resources +13 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 897dca5a9699558460ef285439ded7e99777d655921cdedae2fddfaefde466f8
|
4
|
+
data.tar.gz: 393d858b5bde3892cc7c38555c5ed91e822c2a8ae60dc872b1aec36238758d45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b48871c3d0d216789927f0dc29ffb9fe4d66591a2653aa4b9ae147a597aac0972fec42ad0cdf4ac0b86d990dfe9f154a599a1205b02a7fa27ec0400d66ebd88
|
7
|
+
data.tar.gz: 18d600a1f301b3689df0fff745719486fb8b377b163cb574843ec29156da451cad6d70f4b7e0e84f0bb0c39593e3061bdc6fd33e5fa734ece8f0933100d3445f
|
data/cpee-resources.gemspec
CHANGED
data/tools/cpee-resources
CHANGED
@@ -50,17 +50,21 @@ ARGV.options { |opt|
|
|
50
50
|
opt.on(wrap("[DIR] scaffolds a sample resources service."))
|
51
51
|
opt.parse!
|
52
52
|
}
|
53
|
-
if (ARGV.length
|
53
|
+
if (ARGV.length < 2) ||
|
54
|
+
(ARGV.length == 2 && !(%w(new).include?(ARGV[0]))) ||
|
55
|
+
(ARGV.length > 2)
|
54
56
|
puts ARGV.options
|
55
57
|
exit
|
56
|
-
else
|
57
|
-
p1 = ARGV[0]
|
58
58
|
end
|
59
|
+
command = ARGV[0]
|
60
|
+
p1 = ARGV[1]
|
59
61
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
62
|
+
if command == 'new'
|
63
|
+
insta = "#{curpath}/../server/"
|
64
|
+
if !File.exist?(p1)
|
65
|
+
FileUtils.cp_r(insta,p1)
|
66
|
+
else
|
67
|
+
FileUtils.cp_r(Dir.glob(File.join(insta,'*')).delete_if{|e| e =~ /\.conf/ },p1,remove_destination: true)
|
68
|
+
puts 'Directory already exists, updating ...'
|
69
|
+
end
|
66
70
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cpee-resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: tools
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-07-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: riddl
|