thanthus 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xanthus/configuration.rb +7 -4
- data/lib/xanthus/version.rb +1 -1
- data/lib/xanthus/virtual_machine.rb +4 -2
- 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: 6e2978fd06ea8a6be673740a99c7a623abc4d659a28cc981ab700da31f0047f1
|
4
|
+
data.tar.gz: 1ef4708c498b3d3eae9c2b816511905475afb8ab5c7809e231fd00c18c745ed4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e82a08137a79a90d5b17335c21770d4c6edfdcadb52f725958aa4debff5b21eba7e7f4699dd0a00eed3c1e9adc4891fa81c84ec304f96ee5b0f568f7ea15ed5c
|
7
|
+
data.tar.gz: bfb8236e21fc786dcc4ff7b0fac3e8d3d965549469d25a314202bb82e7ea31ec506147430d54fee8596748bb3e0619d2ca5178f0429cec9cc78d766cee73ed37
|
@@ -5,6 +5,7 @@ module Xanthus
|
|
5
5
|
attr_accessor :affiliation
|
6
6
|
attr_accessor :email
|
7
7
|
attr_accessor :description
|
8
|
+
attr_accessor :share_folder
|
8
9
|
attr_accessor :seed
|
9
10
|
attr_accessor :params
|
10
11
|
attr_accessor :vms
|
@@ -14,6 +15,7 @@ module Xanthus
|
|
14
15
|
attr_accessor :dataverse_conf
|
15
16
|
|
16
17
|
def initialize
|
18
|
+
@share_folder = true
|
17
19
|
@params = Hash.new
|
18
20
|
@vms = Hash.new
|
19
21
|
@scripts = Hash.new
|
@@ -24,6 +26,7 @@ module Xanthus
|
|
24
26
|
vm = VirtualMachine.new
|
25
27
|
yield(vm)
|
26
28
|
vm.name = name
|
29
|
+
vm.share_folder = @share_folder
|
27
30
|
@vms[name] = vm
|
28
31
|
end
|
29
32
|
|
@@ -81,14 +84,14 @@ seed: #{@seed}
|
|
81
84
|
config.dataverse_conf.init(config) unless config.dataverse_conf.nil?
|
82
85
|
|
83
86
|
# executing jobs
|
84
|
-
config.jobs.each do |name,job|
|
85
|
-
for i in 0..(job.iterations-1) do
|
87
|
+
config.jobs.each do |name, job|
|
88
|
+
for i in 0..(job.iterations - 1) do
|
86
89
|
job.execute config, i
|
87
90
|
end
|
88
91
|
end
|
89
92
|
|
90
93
|
# finalizing storage backends
|
91
|
-
config.github_conf.tag
|
92
|
-
config.github_conf.clean
|
94
|
+
config.github_conf.tag unless config.github_conf.nil?
|
95
|
+
config.github_conf.clean unless config.github_conf.nil?
|
93
96
|
end
|
94
97
|
end
|
data/lib/xanthus/version.rb
CHANGED
@@ -13,6 +13,7 @@ module Xanthus
|
|
13
13
|
attr_accessor :boxing
|
14
14
|
attr_accessor :ssh_username
|
15
15
|
attr_accessor :ssh_key_path
|
16
|
+
attr_accessor :share_folder
|
16
17
|
attr_accessor :on_aws
|
17
18
|
attr_accessor :aws_env_key_id
|
18
19
|
attr_accessor :aws_env_key_secret
|
@@ -31,6 +32,7 @@ module Xanthus
|
|
31
32
|
@cpus = 2
|
32
33
|
@cpu_cap = 70
|
33
34
|
@gui = false
|
35
|
+
@share_folder = true
|
34
36
|
@boxing = nil
|
35
37
|
@ssh_username = nil
|
36
38
|
@ssh_key_path = nil
|
@@ -49,8 +51,8 @@ if Vagrant.has_plugin?("vagrant-vbguest")
|
|
49
51
|
end
|
50
52
|
}
|
51
53
|
script += %Q{
|
52
|
-
config.vm.synced_folder ".", "/vagrant", disabled:
|
53
|
-
}
|
54
|
+
config.vm.synced_folder ".", "/vagrant", disabled: #{!@share_folder}, type: 'rsync'
|
55
|
+
}
|
54
56
|
script += %Q{
|
55
57
|
config.ssh.username = "#{@ssh_username}"
|
56
58
|
} unless ssh_username.nil?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thanthus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Pasquier
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-01-
|
13
|
+
date: 2021-01-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|