cpee-instantiation 1.0.20 → 1.0.21

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: 520885171160a30e9ba87160846e940e97da32bb395bbf09ca4daae72b88ccf4
4
- data.tar.gz: 33880deb6b584c9cba12efe45bc1399ff579350f67fd3f9eb1687b4582eb864e
3
+ metadata.gz: 48b61fe23e043cfed4157b397aa1af88953fa552533af459799e5171f30a98fa
4
+ data.tar.gz: 6b88eecca4869e1b98bab5c3f3d85196817682a1e916abb668f707498b1ea53c
5
5
  SHA512:
6
- metadata.gz: 3693958d8ac8788ba324f2f52e60427dff7604316bdba46e85ddfcba494c53e061b085d0d5288e2984353fac1de2349ce6c717250c3e835d2a83934fef1875a2
7
- data.tar.gz: 321bafce9e4dd5f9293bfa3923c7db011f1631b97ac7c4222db8a2f6a740a67d50026f08789172c756585a6500f1200e4b7d7a317fd963a4094e895f098ce5b8
6
+ metadata.gz: 3e741fd88a4e9409523dc96754ab15d7d1236bc82239f487fce88e4d8d58e6a0ea00928928adb921e291bbf4e7832da1f23d1dc56ba16c0345c1e3d9c5d3966c
7
+ data.tar.gz: 44e0644281f0dffcd8e143549513563d0cce7d34f481299b0e9ed60050f6a2e4417a39384f63fafc4c9a4e4fffa5cd555e65397a041b239f65144ada56529de2
data/README.md CHANGED
@@ -4,7 +4,7 @@ To install the instatiation service go to the commandline
4
4
 
5
5
  ```bash
6
6
  gem install cpee-instantiation
7
- cpee-instantiation instantiation
7
+ cpee-instantiation new instantiation
8
8
  cd instantiation
9
9
  ./instantiation start
10
10
  ```
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-instantiation"
3
- s.version = "1.0.20"
3
+ s.version = "1.0.21"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Subprocess instantiation service for the cloud process execution engine (cpee.org)"
@@ -26,24 +26,28 @@ end
26
26
  ARGV.options { |opt|
27
27
  opt.summary_indent = ' ' * 2
28
28
  opt.summary_width = 15
29
- opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [DIR]\n"
29
+ opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [options] new DIR\n"
30
30
  opt.on("Options:")
31
31
  opt.on("--help", "-h", "This text") { puts opt; exit }
32
32
  opt.on("")
33
- opt.on(wrap("[DIR] scaffolds a sample instantiation service. Post a testset to a model to keep going in one operation."))
33
+ opt.on(wrap("[new DIR] scaffolds a sample instantiation service. Post a testset to a model to keep going in one operation."))
34
34
  opt.parse!
35
35
  }
36
- if (ARGV.length != 1)
36
+ if (ARGV.length < 2) ||
37
+ (ARGV.length == 2 && !(%w(new).include?(ARGV[0]))) ||
38
+ (ARGV.length > 2)
37
39
  puts ARGV.options
38
40
  exit
39
- else
40
- p1 = ARGV[0]
41
41
  end
42
+ command = ARGV[0]
43
+ p1 = ARGV[1]
42
44
 
43
- insta = "#{curpath}/../server/"
44
- if !File.exist?(p1)
45
- FileUtils.cp_r(insta,p1)
46
- else
47
- FileUtils.cp_r(Dir.glob(File.join(insta,'*')).delete_if{|e| e =~ /\.conf/ },p1,remove_destination: true)
48
- puts 'Directory already exists, updating ...'
45
+ if command == 'new'
46
+ insta = "#{curpath}/../server/"
47
+ if !File.exist?(p1)
48
+ FileUtils.cp_r(insta,p1)
49
+ else
50
+ FileUtils.cp_r(Dir.glob(File.join(insta,'*')).delete_if{|e| e =~ /\.conf/ },p1,remove_destination: true)
51
+ puts 'Directory already exists, updating ...'
52
+ end
49
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee-instantiation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20
4
+ version: 1.0.21
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