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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43524a032cc3e24c569fd921589cbbcce2008aafb5349806a544f733141b009f
4
- data.tar.gz: 5d8018e1dc9ffc4144ad2b9e0213f150968632a46efffdf45dbfd06dcab68d22
3
+ metadata.gz: 897dca5a9699558460ef285439ded7e99777d655921cdedae2fddfaefde466f8
4
+ data.tar.gz: 393d858b5bde3892cc7c38555c5ed91e822c2a8ae60dc872b1aec36238758d45
5
5
  SHA512:
6
- metadata.gz: b7deb99a187cbec92f46a5fd11c6b04721d1c38eed97b0dc035bdbc30dc5559c53f39b140653ddb785a16f4d80909f6291cebf48631d8796c3184e93dbc4b782
7
- data.tar.gz: '0876064cfe64638c58b69684cbc08eec3d6260514e8d08b3bc4118b6f980241ac00a671e48afd99379e191d3fa03229970a8644471d4778318c63296bf28f913'
6
+ metadata.gz: 2b48871c3d0d216789927f0dc29ffb9fe4d66591a2653aa4b9ae147a597aac0972fec42ad0cdf4ac0b86d990dfe9f154a599a1205b02a7fa27ec0400d66ebd88
7
+ data.tar.gz: 18d600a1f301b3689df0fff745719486fb8b377b163cb574843ec29156da451cad6d70f4b7e0e84f0bb0c39593e3061bdc6fd33e5fa734ece8f0933100d3445f
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-resources"
3
- s.version = "1.0.0"
3
+ s.version = "1.0.1"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0-or-later"
6
6
  s.summary = "Resources list for the cloud process execution engine (cpee.org)"
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 != 1)
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
- insta = "#{curpath}/../server/"
61
- if !File.exist?(p1)
62
- FileUtils.cp_r(insta,p1)
63
- else
64
- FileUtils.cp_r(Dir.glob(File.join(insta,'*')).delete_if{|e| e =~ /\.conf/ },p1,remove_destination: true)
65
- puts 'Directory already exists, updating ...'
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.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-06-27 00:00:00.000000000 Z
12
+ date: 2024-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: riddl